7913 Posts in 1355 Topics by 930 members
DataObjectManager Module
SilverStripe Forums » DataObjectManager Module » HasOneDataObjectManager managing page object broken
Discuss the DataObjectManager module, and the related ImageGallery module.
Moderators: martimiz, UncleCheese, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 1868 Views |
-
HasOneDataObjectManager managing page object broken

17 May 2009 at 8:40am Last edited: 17 May 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??
-
Re: HasOneDataObjectManager managing page object broken

19 May 2009 at 3:08am
solution to this has been discussed here:
http://www.silverstripe.org/dataobjectmanager-module-forum/show/260717#post260717in 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.
| 1868 Views | ||
|
Page:
1
|
Go to Top |

