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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Customising the CMS /

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

toggle languages


Go to End


1654 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.