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

toggle languages


Reply

778 Views

Avatar
MrHyde

8 January 2009 at 12:53am (Last edited: 8 January 2009 12:56am), Community Member, 23 Posts

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.