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

2 ImageDataObjectManagers in a page


Reply


4 Posts   598 Views

Avatar
wainui

Community Member, 56 Posts

13 May 2010 at 8:09pm

Hi,

I am really struggling here.. managed to get the ImageDataObjectManager workign but I want 2!
So in a custom tab I want to have 2 fileds..

ie:
addFieldToTab("Root.Content.Custom.SubCustom", $manager);
addFieldToTab("Root.Content.Custom.SubCustom", $manager2);

but having problemos..

Is this even possible??

That is the question and I will keep trying :)

Avatar
UncleCheese

Forum Moderator, 4096 Posts

14 May 2010 at 1:52am

"problems?"

Avatar
wainui

Community Member, 56 Posts

14 May 2010 at 3:39pm

OMG.. yes :)

Thinking of moving to silverstripe from cmsmadesimple....
finding it very hard to get my head around silverstripe.. managed to get 2 imageDataObject on one page so stoked to get that far today!

just made 2 classes and called them from the page.php thanks for the reply though.

Avatar
UncleCheese

Forum Moderator, 4096 Posts

14 May 2010 at 3:52pm

Glad you got it figured out. If you run in to errors, don't pull your hair out. Just post the errors here and we can help you. I authored the dataobject_manager package and I'm pretty good about keeping it supported.