im trying to use the dataobject manager in a popup window.
it seems not to load the requirements.
any one experiences?
Cheers
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
Discuss the DataObjectManager module, and the related ImageGallery module.
Moderators: martimiz, UncleCheese, Sean, Ed, biapar, Willr, Ingo, swaiba
im trying to use the dataobject manager in a popup window.
it seems not to load the requirements.
any one experiences?
Cheers
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. :-(
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
btw... it almost works. just the css and js files are not blocked / included (even though the func is called) ... weird...
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);
}
OMG.. please send a screenshot! How does the nested popup work?
quite a bit buggy at this stage.
will do some fixes and send you a proper patch with shots as well :)
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?