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

Nested DOM popup not popping up


Reply


19 Posts   3373 Views

Avatar
Andrew Houle

Community Member, 132 Posts

28 October 2009 at 7:03am

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!

Avatar
UncleCheese

Forum Moderator, 4094 Posts

28 October 2009 at 7:14am

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?

Avatar
Andrew Houle

Community Member, 132 Posts

28 October 2009 at 7:27am

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 :)

Avatar
Andrew Houle

Community Member, 132 Posts

29 October 2009 at 3:47am

Edited: 29/10/2009 3:48am

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: [url]http://64.30.240.49/nested-dom.png[/url]

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.

Avatar
UncleCheese

Forum Moderator, 4094 Posts

29 October 2009 at 4:05am

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

Avatar
Andrew Houle

Community Member, 132 Posts

29 October 2009 at 4:25am

Ah, that worked, thanks for your help :)

Avatar
sphire

Community Member, 6 Posts

4 November 2009 at 9:38pm

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.

Avatar
UncleCheese

Forum Moderator, 4094 Posts

5 November 2009 at 2:16am

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.