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.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, Ed, biapar, Willr, Ingo, swaiba

2 ImageDataObjectManagers in a page


Go to End


4 Posts   784 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, 4102 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, 4102 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.