Jump to:

3445 Posts in 1031 Topics by 872 members

Template Questions

SilverStripe Forums » Template Questions » template multi-language <% control ChildrenOf(pagename) %>

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

Page: 1
Go to End
Author Topic: 1183 Views
  • JoeJoe
    Avatar
    Community Member
    7 Posts

    template multi-language <% control ChildrenOf(pagename) %> Link to this post

    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

  • perelin
    Avatar
    Community Member
    4 Posts

    Re: template multi-language <% control ChildrenOf(pagename) %> Link to this post

    Hi Joe,

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

    1183 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.