Forums / Developer / Change language and keep context, how to?
Pierre Tissot
Monday 02 June 2008 1:33:50 am
Hi
I have a multilanguage site, based on the ez url translations. I want that when users change the language, the context of the page stays the same. Currently I send him back to the homepage.
Must be simple, but I don't know how to.
PiR
Maxime Thomas
Tuesday 03 June 2008 10:37:40 pm
You have to redirect them to the right uri and not the homepage.E.G. : you are on /company/product, you change of language, you go to the homepage.
In eZPublish, multisites with different languages are specifies by their different siteccesses, one by language. So you just have to concat your language siteaccess with the know url of the current page.
So, you must edit the flag template and edit the links to have this.
Maxime Thomas maxime.thomas@wascou.org | www.wascou.org | http://twitter.com/wascou Company Blog : http://www.wascou.org/eng/Company/Blog Technical Blog : http://share.ez.no/blogs/maxime-thomas