7913 Posts in 1355 Topics by 930 members
DataObjectManager Module
SilverStripe Forums » DataObjectManager Module » DOM within a DOM
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: | 493 Views |
-
DOM within a DOM

21 December 2010 at 2:50pm
Has anyone manage to implement DOM within a 'DOM with has_many' successfully?
-
Re: DOM within a DOM

21 December 2010 at 3:20pm
Yeah, Nested DOMs have been supported for over a year now.
---------------
Silverstripe tips, tutorials, screencasts, and more. http://www.leftandmain.com -
Re: DOM within a DOM

23 December 2010 at 3:35am Last edited: 23 December 2010 3:35am
This doesnt work if the nest object contains has_many objects
Mu solution was to use ModelAdmin which seems to work well for what I was looking to achieve ( http://silverstripe.org/dataobjectmanager-module-forum/show/15188 )
-
Re: DOM within a DOM

23 December 2010 at 4:15am
UC,
When I add a nested DOM to an extended DataObject (using ModelAdmin), the DataObject tab for the DOM shows up when in add mode. Is there anyway of testing if I am in add mode so I can do a conditional add of the tab?
btw: This works as expected if I am not using DOM.
-
Re: DOM within a DOM

12 January 2011 at 5:21pm
Yeah, I usually just do:
if($this->ID) {
// add DOM
}
| 493 Views | ||
|
Page:
1
|
Go to Top |

