Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Customising the CMS /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

toggle languages

Go to End



Community Member, 23 Posts

8 January 2009 at 12:53am

Edited: 08/01/2009 12:56am

Hi, I'm new to SilverStripe.
I'm just trying to set up a bilingual Page and looking for a piece of code let me toggle between two languages. I yet activated multilanguage support in _config.php.

This should be kept quite simple, like showing "<a>lang1 version</a>" if lang2 is active and "<a>lang2 version</a>" if lang1 is active in the pages header. Someone should have done something like this before.