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

ChildrenOf() with Translatable extension


Go to End


1156 Views

Avatar
perelin

Community Member, 4 Posts

28 November 2012 at 1:42am

Hi,

what is the intended behavior when using ChildrenOf() in a multilanguage page that uses the Translatable extension?

Since ChildrenOf() takes a url-string as argument and url-strings can (and will) be localized it became pretty much useless, or?

In my special case I´m generating a menu with something like ChildrenOf(work). In German this needs to become ChildrenOf(arbeit).

What is the recommended way to go here? Do I have to check for the selected language and map it to the relevant url-string?

What can be an alternative for building menus from only part of the site tree?

Thanks!