Jump to:

7940 Posts in 1543 Topics by 946 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Dataobject manger for item in has_many

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: 881 Views
  • mariusvstraaten
    Avatar
    Community Member
    3 Posts

    Dataobject manger for item in has_many Link to this post

    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

  • UncleCheese
    Avatar
    4085 Posts

    Re: Dataobject manger for item in has_many Link to this post

    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. http://www.leftandmain.com

  • mariusvstraaten
    Avatar
    Community Member
    3 Posts

    Re: Dataobject manger for item in has_many Link to this post

    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

    http://www.flickr.com/photos/66694757@N07/6071731583/in/photostream#

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

    Thanks

  • mariusvstraaten
    Avatar
    Community Member
    3 Posts

    Re: Dataobject manger for item in has_many Link to this post

    No one?

  • netnerd85
    Avatar
    Community Member
    42 Posts

    Re: Dataobject manger for item in has_many Link to this post

    Any update to this?

    881 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.