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.

Template Questions /

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

template multi-language <% control ChildrenOf(pagename) %>


Go to End


2 Posts   2093 Views

Avatar
JoeJoe

Community Member, 8 Posts

12 June 2010 at 6:01am

Edited: 12/06/2010 6:02am

Hi all,

I have a little problem with the multi-language selection. My situation;

in my home template i use the ChildrenOf(cases) function to get the children of that specific page. When i translate a page, the page id has to be unique, so the translated page will be named cases-2. Now, how can i get the content based on the language Locale? I have tried to use the pagebylang function, but that is not working, explained at; http://doc.silverstripe.org/multilingualcontent. Translation is only for one page with the same template.

Hope someone can drop me a line.

Grz,
Joe

Avatar
perelin

Community Member, 4 Posts

28 November 2012 at 8:20pm

Hi Joe,

I´m having the same problem. Did you come up with a solution?