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
Reply

10 Posts   3455 Views

Avatar
t|m

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?

Cheers

Avatar
UncleCheese

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. :-(

Avatar
t|m

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

Cheers

Avatar
t|m

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

Avatar
t|m

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() {
      parent::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");
      Requirements::css('dataobject_manager/css/dataobject_manager.css');
      Requirements::css('dataobject_manager/css/facebox.css');
      Requirements::javascript('dataobject_manager/javascript/facebox.js');   
      Requirements::javascript('dataobject_manager/javascript/jquery-ui.1.5.3.js');
      Requirements::javascript('dataobject_manager/javascript/dataobject_manager.js');
      Requirements::javascript('dataobject_manager/javascript/tooltip.js');

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

Avatar
UncleCheese

19 June 2009 at 12:32pm 4085 Posts

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

Avatar
t|m

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

Avatar
UndefinedOffset

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