Jump to:

22977 Posts in 11758 Topics by 2826 members

General Questions

SilverStripe Forums » General Questions » Translations of sub-pages only visible if parent page is translated?

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

Page: 1
Go to End
Author Topic: 862 Views
  • mco
    Avatar
    Community Member
    14 Posts

    Translations of sub-pages only visible if parent page is translated? Link to this post

    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

  • mco
    Avatar
    Community Member
    14 Posts
    862 Views
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.