DataObjectManager
23 Aug
The dataobject_manager module is an extension to ComplexTableField that allows robust management of DataObjects related to a Page. The DataObjectManager class further cascades into subclasses FileDataObjectManager andImageDataObjectManager, which add more features specific to file-containing DataObjects. It also comes bundled with some useful widgets includingSimpleTreeDropdownField, DatePickerField, and SimpleHTMLEditorField.. Features include:
- Column sorting
- Live search field
- Custom filter field
- Live page sizing
- Drag-and-drop reordering
- Bulk uploading
- File type and size filtering
- Upload progress bar
- File importing
- Toggleable list/grid view of files
- Image sizing tool (ImageDataObjectManager only)
- Clean and intuitive UI
SVN: http://carlinowebdesign.svn.beanstalkapp.com/modules/trunk/dataobject_manager




Hi, I have a problem with this when i set the upload folder $manager->setUploadFolder(“PublicationPage-” . $this->ID); it will upload the file to this directory (i.e. assets/PublicationPage-123). However, if I then replace the file (i.e. click edit on the file data object in the table and then use the replace file functionality) it puts the new file into assets/Uploads instead. Anyway of preventing this?
Ignore that – I should have changed the field in two places.
bug in DOM sorting?
My related dataobjects (or sitetree-objects) were always sorted in ASC direction. I noticed that in TableListField the getQueryMethod uses “dir” request parameter, while you use “sort_dir” as array key. I just needed to override getQueryMethod in my dom subclasses and replace “dir” with “sort_dir” and everything worked as expected.
Thanks for your great contributions!
is it possible to have this installed but not use if for the asset admin area?
DataObjectManager::allow_assets_override(false);
Hi Aaron,
The DOM has helped a lot on projects.
Currently, I’m using the ImageDataObjectManager
to manage upload images. The DataObjectManager_popup.ss is giving duplicate previews for the image object – ie. two thumbnails are showing instead of one in the popup.
It seems that the template if statement DetailForm.NestedController (within the body tag) is inserting the preview image as well as the DetailForm placeholder below it.
I’ve had to disable the DetailForm.NestedController statement, but do you have any other suggestions for fixes?
I think I’m using the latest versions… Hard to tell without version numbers.
Cheers,
Todd
Hi Aaron, i like your graet work.. I hope you can take a look to my problem with dataobject. It’s explained here:
http://www.silverstripe.org/dataobjectmanager-module-forum/show/19101
Sorry for my english.
Hi from Italy.
Hi Uncle Cheese,
I’m building my first SilverStripe site. DOM is perfect for my needs, unfortunately I have a glitch. I’ve posted on the forum:
http://www.silverstripe.org/general-questions/show/19192
No answers yet. Maybe it’s just me?
Thanks for the great work,
J.