Jump to:

23552 Posts in 19349 Topics by 2891 members

General Questions

SilverStripe Forums » General Questions » TableListField in Translatable

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: 577 Views
  • k0m0r
    Community Member
    39 Posts

    TableListField in Translatable Link to this post


    I've just found a very strange behaviour of TableListFields when using Translatable.
    For example I have a ManyManyComplexTableField filled with a list of pages:

    $table = new ManyManyComplexTableField(
    'Title' => 'Title',

    When Translatable is enabled, this should show up a list of all ArticlePages existing in database, that have locale exact to current page locale. And this works perfect.
    But when I'm editing the page in locale other than default, switching the page in table fills it up with ArticlePages from default locale. For example:

    My default locale is en_GB, another allowed locale is de_DE. I have 18 ArticlePages in en_GB and 12 in de_DE locale.
    When I open a German page in CMS, the table is filled with German ArticlePages and the counter shows 12 total. But switching the page magically shows up English ArticlePages from 10 to 18 and the counter switches to 18 total.

    I've been trying to trace it down, but failed. If anyone got an idea why this is happening, please help. Could there be anything wrong with my data model, or did I just find a bug?

    Thanks a lot,


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.