I guess a quick and dirty would be something like the following code. This
could be saved as a little app in the inclObj folder and then added to each
node that needs routing. Alternatively, the code could be beefed up to run
at the app level and route people. I typed this up in notepad, so pardon
any typos or a missing expression -- take it for its essence :-).
_languageRoute.cfm
<cfif structkeyexists(form,"process") OR
structkeyexists(cookie,"mylanguage")>
<!--- If the form was submitted for the first time, set the cookie. once
set redirect below. If the cookie is set, just redirect. --->
<cfif structkeyexists(form,"myLanguage")>
<cfcookie name="myLanguage" value="#form.myLanguage#" expires="NEVER">
</cfif>
<!--- see if there is a child node that matches the cookie/form name and if
so redirect them --->
<cfscript>
o = createObject("component", "#application.packagepath#.farcry.tree");
qChildNodes = o.getChildren(objectid=request.navid, depth=1);
</cfscript>
<cfquery name="qLanguage" dbtype="query">
SELECT objectID, objectName
FROM qChildNodes
WHERE
1=1
AND objectName = '#cookie.myLanguage#'
</cfquery>
<cflocation url="/index.cfm?objectid=#qLanguage.objectID#" addtoken="No">
<cfelse>
<!--- form to route user --->
<form action="" method="post" name="myLanguage" id="myLanguage">
<select name="myLanguage">
<option value="">Please Select Language</option>
<option value="french">french</option>
<option value="german">german</option>
</select>
<input type="submit" name="process" value="go" class="btnGo">
</form>
</cfif>
I would do something like this.
> -Home
-------> inclObj: _languageRoute.cfm
> -English
> --About
> --Contact
> -French
> --About
> --Contact
> -German
> --About
> --Contact
Hope this sheds some light.
--
Regards,
Michael J. Sammut
________________________________________________
F O U R E Y E S P R O D U C T I O N S
think | plan | create :: web site design & development :: NYC
E. [EMAIL PROTECTED] | T: 718.254.9557 ext. 101 | F: 718.254.0399
W. http://www.foureyes.com
"Robertson-Ravo, Neil (RX)" <[EMAIL PROTECTED]> wrote in
message news:[EMAIL PROTECTED]
>
> Hey,
>
> From the feature list on the website, it mentions that to create a
separate
> not for new multilingual content? Is this what you mean?
>
> -Home
> --About
> --Contact
> -English
> --About
> --Contact
> -French
> --About
> --Contact
> -German
> --About
> --Contact
>
> Etc...
>
> How would you switch through these content selections when in a FarCry
site?
> Is this worth a quicktip or How-To? Any info on this subject would be
good
> :-)
>
> N
>
>
>
> This e-mail is from Reed Exhibitions (Oriel House, 26 The Quadrant,
> Richmond, Surrey, TW9 1DL, United Kingdom), a division of Reed Business,
> Registered in England, Number 678540. It contains information which is
> confidential and may also be privileged. It is for the exclusive use of
the
> intended recipient(s). If you are not the intended recipient(s) please
note
> that any form of distribution, copying or use of this communication or the
> information in it is strictly prohibited and may be unlawful. If you have
> received this communication in error please return it to the sender or
call
> our switchboard on +44 (0) 20 89107910. The opinions expressed within
this
> communication are not necessarily those expressed by Reed Exhibitions.
> Visit our website at http://www.reedexpo.com
>
>
---
You are currently subscribed to farcry-dev as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004