Jump to:

23367 Posts in 18143 Topics by 2863 members

General Questions

SilverStripe Forums » General Questions » The current state of translated, versioned DataObjects

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: 795 Views
  • RossM
    Avatar
    Community Member
    2 Posts

    The current state of translated, versioned DataObjects Link to this post

    Hi,

    The translation/verisoning works nicely for the SiteTree models, but now I'm trying to figure out how easy it is to use translated, versioned (non-sitetree) DataObjects. I have set some up, but both ways I have seen to manage these "out of the box" seem to have issues.

    1) HasManyComplexTableField

    With this method, no version/translation tabs are shown, and worse, it seems to have to trouble saving the current locale to the created DataObjects.

    2) ModelAdmin

    The translations don't show here, and the Versions tab doesn't seem to work for me, it never creates any new versions and has an odd "Add Site Tree" button. I see that there is also an old module called TranslatableModelAdmin (http://www.silverstripe.org/translatablemodeladmin-module/), but this doesn't seem to work with 2.4.2.

    So, what are other people doing? Are people currently using translated, versioned DataObjects? If so, did you have to write a lot of custom code? It seems that this part of the CMS isn't as polished as the rest, is this something planned for future versions?

    Thanks,

    Ross

  • swaiba
    Avatar
    Forum Moderator
    1784 Posts

    Re: The current state of translated, versioned DataObjects Link to this post

    I posted a small patch for 2.4.2 yesterday - it means you can create translations, but there are holes in it and I haven't used it yet for a project - it looks like I'll have to customize it because I want to keep a "core" data object and then translate parts of it. Or I need to finalise my plan.

    patch here (and description from ingo)
    http://www.silverstripe.org/data-model-questions/show/266754?start=0#post293692

    Another thing needed is making the translated local readonly in the getCMSFields - as curerntly the user could edit it to xyz and break the thing!

    Barry

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