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