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

Dataobject manger for item in has_many


5 Posts   890 Views


23 August 2011 at 8:00am Community Member, 3 Posts

Hi Guys

I am having some difficulty achieving the following.

I have two dataobjects Theme and Experience.
And one page HybridPage.

The HybridPage has_many themes (limited to 5) and each theme has_many experiences.

Now on the onAfterWrite of the Hybrid pages i already add the 5 theme dataobjects to the page.
Now each of the themes i want to display in a tab and in the tab a DataObjectManager of it's experiences.

I am having difficulty linking the DataObjectManager in the tab of the page to the Theme in the has_many array of the page.

Any help would be nice and appreciated.

Thanks guys


23 August 2011 at 1:10pm 4085 Posts

You can nest DataObjectManagers within another one. So in your getCMSFields() function for Theme, add a DOM for experiences. Works the same way as a page. The UI will automatically adjust to work in the popup.. you'll get a smaller popup window, etc..

Silverstripe tips, tutorials, screencasts, and more.


23 August 2011 at 4:43pm Community Member, 3 Posts

HI again

Thanks for the speedy reply Uncle Cheese.

I have done that. The popup for the experiences DOM in the Theme
doesnt display correctly. It is nested within the popup and does not show as another popup.

This occurs in FireFox aswell as Chrome. It does however work in Safari.
See link below

I do however would like to have it on the tabs as mentioned. Isn't this possible at all.



24 August 2011 at 4:33pm Community Member, 3 Posts

No one?


3 July 2012 at 11:09pm Community Member, 42 Posts

Any update to this?