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.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Translations of sub-pages only visible if parent page is translated?


Reply

2 Posts   924 Views

Avatar
mco

8 April 2010 at 1:29am Community Member, 14 Posts

Hi,

In the backend i'm using pages which are not visible on the frontend to structure my content. These pages have sub-pages which are visible in the frontend. That works pretty well.

These 'parent' pages are in the default language (english)
If i now translate a sub-page to another language (german/french/etc.) they are not reachable in the frontend. I have to do a translation of the invisible parent-page to see the translated sub-page in the frontend as well.

Both the parent-pages and it's sub-pages are of a custom type derived from the default "Page" type.

Is there something I forgot to do?

I enabled translation using Object::add_extension('SiteTree', 'Translatable'); in the mysite/_config.php
I also tried to enable translation not globally but only in my derived page type for the sub-pages but that didn't work as well.

thanks for any input,
MC

Avatar
mco

12 April 2010 at 9:25pm Community Member, 14 Posts

filed this as bug http://open.silverstripe.org/ticket/5388