Jump to:

7939 Posts in 1472 Topics by 944 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » 2 ImageDataObjectManagers in a page

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1
Go to End
Author Topic: 517 Views
  • wainui
    Avatar
    Community Member
    56 Posts

    2 ImageDataObjectManagers in a page Link to this post

    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

  • UncleCheese
    Avatar
    4085 Posts

    Re: 2 ImageDataObjectManagers in a page Link to this post

    "problems?"

  • wainui
    Avatar
    Community Member
    56 Posts

    Re: 2 ImageDataObjectManagers in a page Link to this post

    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.

  • UncleCheese
    Avatar
    4085 Posts

    Re: 2 ImageDataObjectManagers in a page Link to this post

    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.

    517 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.