Jump to:

7939 Posts in 1472 Topics by 944 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Nested DOM popup not popping up

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1 2 3
Go to End
Author Topic: 3028 Views
  • Andrew Houle
    Avatar
    Community Member
    132 Posts

    Re: Nested DOM popup not popping up Link to this post

    I changed line 571 in DataObjectManager.php to Requirements::javascript($this->BaseHref() . 'jsparty/jquery/plugins/livequery/jquery.livequery.js'); and that got rid of the first error and fixed some of the issues. I still get this error Error: Enumerable is not defined

    Also, is there a way to have the files only associated with a particular DO. Right now they seem to show up for every DO.

    Thanks for your help!

  • UncleCheese
    Avatar
    4085 Posts

    Re: Nested DOM popup not popping up Link to this post

    Line 571 of DataObjectManager.php is not a Requirements line. Are you sure you're on the latest version?

    What do you mean "associated with a particular DO?" What are you trying to do?

  • Andrew Houle
    Avatar
    Community Member
    132 Posts

    Re: Nested DOM popup not popping up Link to this post

    I thought I had uploaded the newest DOM, but I must have had an old version. All seems to be working on rev 314. Thanks for your help

  • Andrew Houle
    Avatar
    Community Member
    132 Posts

    Re: Nested DOM popup not popping up Link to this post

    When I use nested DOM with a dataobject that has other one to many relationships those relationships show in the nested popup. The best way to explain it is with this image: http://64.30.240.49/nested-dom.png

    Is there anyway to strip that out, also, I would love to remove the sort order pulldown that appears.

    Any ideas? Thanks in advance for your help.

  • UncleCheese
    Avatar
    4085 Posts

    Re: Nested DOM popup not popping up Link to this post

    It looks like you haven't defined a getCMSFields() function, because all your fields are being scaffolded. Hence the useless "Main" tab.

  • Andrew Houle
    Avatar
    Community Member
    132 Posts

    Re: Nested DOM popup not popping up Link to this post

    Ah, that worked, thanks for your help

  • sphire
    Avatar
    Community Member
    6 Posts

    Re: Nested DOM popup not popping up Link to this post

    I’ve had a similar problem when trying to use nested popups with a case close to the one in the video. The problem turned out to be the TabSet I was using in my initial popup which will cause getNestedDOMs() to return False. As far as I can tell, the method needs to be adjusted so that it also iterates over members of TabSets when encountered or it will skip anything in them.

    Hope that helps.

  • UncleCheese
    Avatar
    4085 Posts

    Re: Nested DOM popup not popping up Link to this post

    Good catch. Detecting a nested DOM hasn't proved very easy to do. I wonder if it would suffice to just check if your DataObject class has a has_many defined?

    But then that would exclude HasOne and ManyMany DOMs..

    I may just have to have it recursively iterate through tab sets.

    3028 Views
Page: 1 2 3
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.