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.

Template Questions

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


Reply

2 Posts   1194 Views

Avatar
JoeJoe

12 June 2010 at 6:01am (Last edited: 12 June 2010 6:02am), Community Member, 8 Posts

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

28 November 2012 at 8:20pm Community Member, 4 Posts

Hi Joe,

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