Jump to:

3430 Posts in 1057 Topics by 734 members

Data Model Questions

SilverStripe Forums » Data Model Questions » Creating a translation for a new page

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

Page: 1
Go to End
Author Topic: 903 Views
  • Futureal
    Avatar
    Community Member
    9 Posts

    Creating a translation for a new page Link to this post

    Multilangual content is nice.
    I am working on a 'sparse' site: much of the content is not translated, but a full sitetree has to be available in the alternative language.
    If a page's Content is not available (empty page) in the alternative language, it automatically shows the page in the default language without leaving the SiteTree (we added this functionality)

    However, if we create a new page in the default language, we also automatically want to create a page in the alternative language.
    Is there some way to overwrite the constructor of a new Page so that it also automatically generates the translation?

  • Futureal
    Avatar
    Community Member
    9 Posts

    Re: Creating a translation for a new page Link to this post

    Anyone know this?

    Simple question I think: is it possible, upon creation of a new Page, to also immediately create an empty translation?

  • Ironcheese
    Avatar
    Community Member
    33 Posts

    Re: Creating a translation for a new page Link to this post

    I'm sorry Futureal,

    I can't help you but could you tell me/us how you managed your default Language Fallback function?

    I need such a function aswell and just couldn't make it work. :S

  • Futureal
    Avatar
    Community Member
    9 Posts

    Re: Creating a translation for a new page Link to this post

    @Ironcheese
    I know this reply is late, but I think a suggestion of how to solve this is here:
    http://silverstripe.org/general-questions/show/16412#post301533#post301533

    903 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.