O.k., I found a solution: <a href={concat('/path_to_ezroot/index.php','/de/',DesignKeys:used.url_alias)}>
I didn't manage not to hardcode the first part of the path. ezroot-operator doesn't work together with concat, because it treats the quote marks differently. Does anybody have an idea how to realize this?
Anyway, thanks a lot, Ole Morten, for your Friday night input.
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?)
You must be logged in to post messages in this topic!