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.

General Questions /

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

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

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


Go to End


2 Posts   1506 Views

Avatar
mco

Community Member, 14 Posts

8 April 2010 at 1:29am

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

Community Member, 14 Posts

12 April 2010 at 9:25pm