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

DOM in a popup?

Go to End

10 Posts   3448 Views


19 June 2009 at 10:28am Community Member, 19 Posts

im trying to use the dataobject manager in a popup window.
it seems not to load the requirements.

any one experiences?



19 June 2009 at 11:44am 4085 Posts

Wow.. That's a wild idea, and I don't think there's any chance you'll get it working, but if you do, please let me know how you do it.

Wouldn't that present some serious interface challenges? A DOM popup in a DOM popup?!

FYI, I'm working on a new field for DOM that will allow very limited CRUD management of DataObjects to another DataObject. Won't be as pretty as the DOM, but it will do the job.

Can't say a release date, though. Pretty far off at this point. :-(


19 June 2009 at 11:47am Community Member, 19 Posts

hmm yeah it is a bit weird

but i'd like to manage children of children of a page.
cant use DOM for the first view as it needs a different view...

maybe i'll find another way of handling it...



19 June 2009 at 11:49am Community Member, 19 Posts

btw... it almost works. just the css and js files are not blocked / included (even though the func is called) ... weird...


19 June 2009 at 11:54am Community Member, 19 Posts

got it!

i moved the requirements calls from DataObjectManager::__construct() to a new function "FieldHolder"
in order to overwrite the calls by complex table field

public function FieldHolder() {
      Requirements::block(THIRDPARTY_DIR . "/greybox/AmiJS.js");
      Requirements::block(THIRDPARTY_DIR . "prototype.js");
      Requirements::block(THIRDPARTY_DIR . "/greybox/greybox.js");
      Requirements::block(SAPPHIRE_DIR . "/javascript/ComplexTableField.js");
      Requirements::block(SAPPHIRE_DIR . "/javascript/TableListField.js");

      Requirements::block(THIRDPARTY_DIR . "/greybox/greybox.css");
      Requirements::block(SAPPHIRE_DIR . "/css/ComplexTableField.css");

      return $this->renderWith($this->template);


19 June 2009 at 12:32pm 4085 Posts

OMG.. please send a screenshot! How does the nested popup work?


19 June 2009 at 1:58pm Community Member, 19 Posts

quite a bit buggy at this stage.
will do some fixes and send you a proper patch with shots as well :)


10 September 2009 at 7:42am (Last edited: 10 September 2009 7:42am), Community Member, 27 Posts

I hate bumping old topics but did you ever manage to get it working? I'm also trying to have a DataObjectManager in a DataObjectManager popup. Only thing thats not working is the drag and drop reordering, when I try to reorder it all that happens is it adds space bellow the item I want to move. I have firebug installed and it's showing "c.Event is not a function" comming from jQuery-ui.1.7.js line 10.

I'm likely missing some javascript file, but any ideas?

Go to Top