3212 Posts in 847 Topics by 809 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 973 Views |
-
Translatable and childrenOf

30 October 2009 at 10:57pm
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:
http://gist.github.com/222241But 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_FRLine 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.
Sven
-
Re: Translatable and childrenOf

2 November 2009 at 9:05am
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
| 973 Views | ||
|
Page:
1
|
Go to Top |


