At 11:31 10/05/01 -0600, you wrote:
>Then set the variable lang same as you do now .. then code the links as
>
>index.cfm?fuseaction=whatever&lang=#session.lang#
>
>and in your application.cfm check for the existence of the lang in the url
>and set it as session.lang if it exists otherwise go to a default.
>
>That is the only way I can think of that will allow for the user to bookmark
>a specific area and not have to worry about cookies or session timeouts
>while still keeping their language selection.

Yes, but if the session expires the prefered language is lost.
I think is better use client variables.

>Anytime you include a static page it is faster than hitting the database
>plain and simple.  But if you have a design change you must replicate that
>design change in every file that is included.  If you use the database you
>only need to make the design change once and it appears for all languages.

But, i think is better user cfm templates to all pages and heve the lng_ 
included files for language than retrive it from a database.

Toni


>-----Original Message-----
>From: Toni Trape [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, May 10, 2001 10:57 AM
>To: Fusebox
>Subject: RE: Advantages of use cfid and cftoken?
>
>
>At 08:59 10/05/01 -0600, you wrote:
> >Try passing the language preference as a variable in the url:
> >
> >index.cfm?fuseaction=viewpage&lang=Spanish
> >
> >That will resolve the problem with the bookmarks and the session variables.
>
>Yes, but is too bad thinking about language in every page when i can have a
>client/session/cookie variable that i can use in any page. I think in set a
>flag when user had choosed the prefered language that i can use on any page
>and i must not think in pass language into URL.
>
>I'm thinking in that, i don't know if we can find a perfect solution.
>
> >Next have all of the dsp files pull the information from the database. do
> >your query something like this:
> >
> ><cfparam name="lang" default="English">
> >
> >select Content
> >from ContentTable
> >where lang = #attributes.lang#
> >and ContentTitle = 'Welcome to Our Site'
> >
> >In your display file
> >
> ><cfoutput>#GetContentContent#</cfoutput>
> >
> >that way the layout of your pages only ever needs to be done once.  Create
> >an admin section that will let you select a piece of content to update and
> >then you can manage the entire site from the web as well without writing
> >code.
>
>I think is too slow put all labels into a database and make many querys to
>retrive them.
>I think is faster and better have the labels used into a template in a lng_
>file with <cfset..
>Isn't it?
>
>Toni
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to