Skip to end of metadata
Go to start of metadata

I would like to show/hide page content on basis of a language chosen by the user for our website.
When a user would click on their appropiate language menu icon. Then the correct language content should be display for the whole website.

How can this be achieved?

  • No labels

1 Comment

  1. Unknown User (suedti)

    I´m using this piece of code to switch between different builder layouts depending on the user´s language settings.
    All you have to do is to prepare different layouts, where the menu-items are translated into the desired language.

    Dont´t forget to select "velocity then wiki-markup" in the option of the panel containing the script (e.g.header).

    #if (($action.locale.getDisplayLanguage()=='Deutsch'))
    {use-layout:GERMAN|latch=true}#end