Jump to:

3431 Posts in 1058 Topics by 734 members

Data Model Questions

SilverStripe Forums » Data Model Questions » alternative to translatable

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

Page: 1 2
Go to End
Author Topic: 1199 Views
  • lekoala
    Avatar
    Community Member
    30 Posts

    Re: alternative to translatable Link to this post

    Well the thing is, I don't have the problem in my setup because if I have a translatable productpage with products, I don't create any relationship between my productpage and my products anyway, because I only have one productpage. So I just create a method on the productpage to get all my products, that you would need to create anyway to allow sorting, filters, pagination ...

    I don't think the decorator can help with this, because it's an inherent problem with translatable. See this link for more info for instance
    http://www.balbuss.com/translatable-duplicate-linked-dataobjects/

  • martimiz
    Avatar
    Forum Moderator
    1068 Posts

    Re: alternative to translatable Link to this post

    Hey, thanks for posting that link to my journal ;)

    Yep, I've been really busy with translating things, and I think your solution would really be a good alternative in certain situations. I was already thinking about extending the button in that post to either duplicate or link objects (instead of just duplicating), as juanitou seems to have done something similar for UC's image gallery. So that might work very well...

  • lekoala
    Avatar
    Community Member
    30 Posts

    Re: alternative to translatable Link to this post

    so it's your journal ? interesting stuff in there by the way

    I'm not completely convinced that duplicating things is the way to go. In my opinion, everything has to be as clean as possible in the database, that's why I created the localizable decorator. I guess you could try using it also for pages, as long as you have the same content in various languages. I'm not sure how well it will work with versions for instance, but the code could surely be updated to make it work.

    1199 Views
Page: 1 2
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.