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.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Customising the CMS /

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

toggle languages


Go to End


1226 Views

Avatar
MrHyde

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.