Jump to:

3444 Posts in 1030 Topics by 871 members

Template Questions

SilverStripe Forums » Template Questions » Translatable and childrenOf

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

Page: 1
Go to End
Author Topic: 1101 Views
  • svnee
    Community Member
    1 Post

    Translatable and childrenOf Link to this post

    Hi everybody,

    I'm quite new to SS so perhaps this is obvious to you but I used monster Google and found nothing helping...

    What I try to achieve is, I have a template for the Homepage where I have to show the navigation. I Currently use this code here:

    But because I need to translate the website whenever I change the language SS barks at me with the following message:

    [Warning] Error running : page 'Home' couldn't be found
    GET /?locale=fr_FR

    Line 72 in /var/www/sapphire/core/control/ContentController.php

    Could anyone please help me? Atm I think that I need to use ChildrenOf because the first level Links are fixed by the template.


  • Ingo
    Forum Moderator
    801 Posts

    Re: Translatable and childrenOf Link to this post

    Hm, ChildrenOf() doesnt give you any children that are not in the current locale.
    Have a look at this recipe: http://doc.silverstripe.org/doku.php?id=multilingualcontent&s=translatable#templates

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.