Jump to:

7940 Posts in 1543 Topics by 946 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » HasOneDataObjectManager managing page object broken

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1
Go to End
Author Topic: 2085 Views
  • schellmax
    Avatar
    Community Member
    126 Posts

    HasOneDataObjectManager managing page object broken Link to this post

    hello,
    i was trying to set up a hasone-dataobjectmanager to replace a corresponding ctf, but it's not working.
    in the dom, instead of the 'Title' the dom lists the IDs of the 'PageClient' instances (like '#33'), and the layout is broken. ctf is doing fine.
    both are using the same arguments:

    $tablefield = new HasOneDataObjectManager( //or HasOneComplexTableField
       $this,
       'Client',
       'PageClient',
       array(            
          'Title' => 'Kunde'         
       )            
    );   


    maybe this has something to do with the 'PageClient' class (it's extending 'Page')?

    btw: there's no 'attach file' input when posting in this forum??

  • schellmax
    Avatar
    Community Member
    126 Posts

    Re: HasOneDataObjectManager managing page object broken Link to this post

    solution to this has been discussed here:
    http://www.silverstripe.org/dataobjectmanager-module-forum/show/260717#post260717

    in short:
    - 'Title' field isn't supported (yet) by dom. use your own field (e.g. 'Name')
    - the broken layout was due to my improvidence, svn update did it.

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