7913 Posts in 1355 Topics by 930 members
DataObjectManager Module
SilverStripe Forums » DataObjectManager Module » DOM in a popup?
Discuss the DataObjectManager module, and the related ImageGallery module.
Moderators: martimiz, UncleCheese, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
| Go to End | Next > | |
| Author | Topic: | 2943 Views |
-
DOM in a popup?

19 June 2009 at 10:28am
im trying to use the dataobject manager in a popup window.
it seems not to load the requirements.any one experiences?
Cheers
-
Re: DOM in a popup?

19 June 2009 at 11:44am
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.
-
Re: DOM in a popup?

19 June 2009 at 11:47am
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
-
Re: DOM in a popup?

19 June 2009 at 11:49am
btw... it almost works. just the css and js files are not blocked / included (even though the func is called) ... weird...
-
Re: DOM in a popup?

19 June 2009 at 11:54am
got it!
i moved the requirements calls from DataObjectManager::__construct() to a new function "FieldHolder"
in order to overwrite the calls by complex table fieldpublic 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);
} -
Re: DOM in a popup?

19 June 2009 at 12:32pm
OMG.. please send a screenshot! How does the nested popup work?
-
Re: DOM in a popup?

19 June 2009 at 1:58pm
quite a bit buggy at this stage.
will do some fixes and send you a proper patch with shots as well
-
Re: DOM in a popup?

10 September 2009 at 7:42am Last edited: 10 September 2009 7:42am
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?
| 2943 Views | ||
| Go to Top | Next > |

