Has anyone manage to implement DOM within a 'DOM with has_many' successfully?
We've moved the forum!
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
DataObjectManager Module /
Discuss the DataObjectManager module, and the related ImageGallery module.
Moderators: martimiz, UncleCheese, Sean, Ed, biapar, Willr, Ingo, swaiba
DOM within a DOM
Yeah, Nested DOMs have been supported for over a year now.
---------------
Silverstripe tips, tutorials, screencasts, and more. http://www.leftandmain.com
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 )
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.
bumping this up!
Yeah, I usually just do:
if($this->ID) {
// add DOM
}