Jump to:

23377 Posts in 18296 Topics by 2867 members

General Questions

SilverStripe Forums » General Questions » Editors can not edit own 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: 855 Views
  • spankmaster79
    Avatar
    Community Member
    46 Posts

    Editors can not edit own DataObjects Link to this post

    Hi,

    my problem is that editors can't edit or create certain DataObjects I created for page I built. Some are editable and some aren't.... And if I switch language, it's a multilanguage site, then the Input fields don't even appear......

    Examples:
    I have a class for links to display a linklist

    - German -> Editors can edit and create
    - Englisch -> No fields in popup

    Other class that manages Downloads

    - German -> Show: yes, edit & create: no
    - Englisch -> No fields in popup

    Could anybody hint me to where the problem may be?

    Greetz
    Spanky

  • swaiba
    Avatar
    Forum Moderator
    1785 Posts

    Re: Editors can not edit own DataObjects Link to this post

    "Edit DataObject" - I assume you don't mean the source code (joking!).

    Do you mean with extra stuff you've added to Sitetree objects and in the SiteTree/Pages section or with ModelAdmin or with something else?

  • spankmaster79
    Avatar
    Community Member
    46 Posts

    Re: Editors can not edit own DataObjects Link to this post

    I mean objects derived from DataObject that I handle with a DataObjectManager in a Page.

    On debugging I could find out that in TableListField.php function Can($mode) returns false on $this->isReadOnly().

    But why does it work in German then???

  • swaiba
    Avatar
    Forum Moderator
    1785 Posts

    Re: Editors can not edit own DataObjects Link to this post

    Ahh - so best if you mention that and I'd suggest posting into the DataObjectManager part of the forum because you are looking at getting help with an external module (one so popular it's got it's own section!) it's the only place I see UncleCheese post...

    of course, DOM may implement things like ModelAdmin and that may mean this would be the fix...
    http://silverstripe.org/data-model-questions/show/6059?start=0

  • spankmaster79
    Avatar
    Community Member
    46 Posts

    Re: Editors can not edit own DataObjects Link to this post

    Thx for the info. Just found out myself that it might have to do something with it. I'll try it there, but I don't know why DataObjectManager calls ComplexTableField to check in TableListField........

    And I had created all can.....() CRUD functions with a return true value. But they don't seem to get called-.....

  • swaiba
    Avatar
    Forum Moderator
    1785 Posts

    Re: Editors can not edit own DataObjects Link to this post

    I don't know why DataObjectManager calls ComplexTableField to check in TableListField........

    DOM extends the ComplexTablefield, it doesn't re-invent it

  • spankmaster79
    Avatar
    Community Member
    46 Posts

    Re: Editors can not edit own DataObjects Link to this post

    whoooops... just been blind for a second ;-)

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