do you need the /farcry url to map to a home dir? or do you need the
public facing url to map to it?
If it's /farcry i can only suggest that you set a home dir on a user
by user basis (i think i saw this as a FC 3 feature?)
and for root folder, simple, just use cflocation to do a 302 redirect
to the right url. You could even get CF on the subdomains to share app
scope and redirect to
company.com/index.cfm?objectid=#application.navid.sweedish# rather
than hard coding the uuid.
hope that make sense and helps
Gav
On 2/13/06, Daniel Niklasson <[EMAIL PROTECTED]> wrote:
>
> I did this site with multiple language support using two different
> branches. I got the following site layout:
>
> Home
> - Language check (dmInclude)
> - Swedish
> - Home (navalias swehome)
> Home (dmHtml)
> - English
> - Home (navalias enghome)
> Home (dmHtml)
>
> The language check includes...
>
> <cfparam name="URL.lang" default="">
>
> <cfif URL.lang EQ "swedish">
> <cfset SESSION.navid.home = APPLICATION.navid.swehome>
> <cflocation url="/index.cfm?objectid=#SESSION.navid.home#"
> addtoken="no">
> <cfelseif URL.lang EQ "english">
> <cfset SESSION.navid.home = APPLICATION.navid.enghome>
> <cflocation url="/index.cfm?objectid=#SESSION.navid.home#"
> addtoken="no">
> <cfelseif isdefined('SESSION.navid.home') NEQ "">
> <!--- Is a language already selected? --->
> <cflocation url="/index.cfm?objectid=#SESSION.navid.home#"
> addtoken="no">
> <cfelse>
> <!--- Default to English --->
> <cfset SESSION.navid.home = APPLICATION.navid.enghome>
> <cflocation url="/index.cfm?objectid=#SESSION.navid.home#"
> addtoken="no">
> </cfif>
>
> If any reference is done to application.navid.home then the language
> check script would just be executed and redirecting you to the right
> place again. The above should be easily rewritten to match your needs.
> Don't forget to edit the apps.cfm in your farcry dir so that both
> domains points to the same farcry application.
>
> <cfscript>
> stApps = structNew();
> stApps['www.subsite1.mydomain.com'] = 'yourapp';
> stApps['www.subsite2.mydomain.com'] = 'yourapp';
> </cfscript>
>
> / danieln
>
>
>
> Theo Galanakis wrote:
>
> >Hi,
> >
> > Just throwing a question out there regarding best
> >practice/approach in farcry for this particular issue:
> >
> >
> >Farcry has an application variable called application.navid.home, which
> >points to the main home page. Is it possible to have one farcry sites on
> >two separate sub domain?
> >
> > E.g. www.subsite1.mydomain.com
> > E.g. www.subsite2.mydomain.com
> >
> >Suggested Logic:
> >When a user enters either subsite1 or subsite2, cf code looks at the
> >cgi.http_host variable to determine which subdomain the user is looking
> >at, this changes the navigation structure to another navigation point on
> >the root structure. E.g.
> >
> > Root.home <-- www.subsite1.mydomain.com
> > Root.home_2 <-- www.subsite2.mydomain.com
> >
> >
> >How would you do this in farcry? I have noticed that the farcry_core has
> >reference to the application.navid.home, which makes it difficult to be
> >able to switch the home navid reference based on which subdomain the
> >user is browsing.
> >
> >Your help, tips and suggestions would be greatly appreciated.
> >
> >Theo
> >
> >
> >
> >--
> >_______________________________________________________________________________
> >
> >
> >
> >Notice from Melbourne Business School Ltd
> >
> >
> >The information contained in this e-mail is confidential, and is intended for
> >the named person's use only. It may contain proprietary or legally
> >privileged
> >information. If you have received this email in error, please notify the
> >sender and delete it immediately. You must not, directly or indirectly, use,
> >disclose, distribute, print, or copy any part of this message if you are not
> >the intended recipient
> >
> >Internet communications are not secure. You should scan this message and any
> >attachments for viruses. Melbourne Business School does not accept any
> >liability for loss or damage which may result from receipt of this message or
> >any attachments.
> >
> >______________________________________________________________________________
> >
> >
> >
> >
> >
> >
> >
>