Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

HasOneDataObjectManager managing page object broken


Reply


2 Posts   2152 Views

Avatar
schellmax

Community Member, 126 Posts

17 May 2009 at 8:40am

Edited: 17/05/2009 8:44am

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??

Avatar
schellmax

Community Member, 126 Posts

19 May 2009 at 3:08am

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.