Monday 29 November 2004 2:32:11 am
I found out: Using the construction
<a href={concat('/index.php','/de/', $DesignKeys:used.url_alias)|ezroot}>German</a>
works fine in general, but doesn't take care of the offset in list views with several pages: For example: Viewing the second page of a list corresponds with URL ezpath/index.php/de/products/(offset)/10
When changing the language here, the new view will result in an URL
ezpath/index.php/en/products, that means, the offset is lost.
Manipulating the string like this
ezpath/index.php/en/products/(offset)/10
gives the desired view back. So how can I manipulate the string in the template? Is it a good idea to use PHP here, or are there any other suggestions? (And how to integrate PHP best?)
|