AW: [opencms-dev] jumping between locales in a pages

Kai Schliemann k.schliemann at comundus.com
Fri Mar 17 19:00:05 CET 2006


Hi Chris,

I think you can do something like <a
href="<%=currentUri%>?__locale=<%=locale%>">myLanguage</a>.
This works, if all trees are identical or at least the called page in the
other locale exists.

HTH

Kai


> -----Ursprungliche Nachricht-----
> Von: opencms-dev-bounces at opencms.org
> [mailto:opencms-dev-bounces at opencms.org]Im Auftrag von Christoph P.
> Kukulies
> Gesendet: Freitag, 17. Marz 2006 18:41
> An: opencms-dev at opencms.org
> Betreff: [opencms-dev] jumping between locales in a pages
>
>
> My site has two trees, one for each language.
> The pages in the trees are siblings of their respective counterparts.
>
> I would like to press the "English" button in the top bar of the page
> which brings me to the same page in the other locale and vice cersa the
> "Deutsch" button in the page when the english contents is shown.
>
> So I need to get the resource name in the other locale. Can I obtain the
> information of the sibling of that certain page? Or what is the
> way to achieve the desired goal?
>
>
> --
> Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev




More information about the opencms-dev mailing list