Change language and keep context, how to?

Author Message

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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.