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

Drag and Drop reordering gone ?


Reply

4 Posts   1267 Views

Avatar
teejay

29 January 2010 at 4:46pm (Last edited: 29 January 2010 4:46pm), Community Member, 63 Posts

Hi just a small question abot the ImageDataObjectManager. I know there was once a check box to start reorderung. is this gone somehow or do I something wrong ?

I am using this code to put the IDOM in admin section

$manager = new ImageDataObjectManager(
         $this, // Controller
         'ImageResources', // Source name
         'ImageResource', // Source class
         'ImageResource', // File name on DataObject
         null,
         'getCMSFields_forPopup' // Detail fields (function name or FieldSet object)
         // Filter clause
         // Sort clause
         // Join clause
      );
      $manager->setUploadFolder('assets/Uploads/overviewgalleries/'.$this->ID);
      $fields->addFieldToTab("Root.Content.Gallery",$manager);

what could possible cause this issue.

thx
Thomas

Avatar
UncleCheese

29 January 2010 at 5:16pm 4085 Posts

Have you registered the class in SortableDataObject?

Avatar
teejay

29 January 2010 at 5:19pm (Last edited: 29 January 2010 5:26pm), Community Member, 63 Posts

Nope how ? In the config ?

update:

like this

SortableDataObject::add_sortable_class('ImageResource'); cool thx :)

Avatar
Tom B.

8 February 2011 at 11:48pm Community Member, 5 Posts

Thanks, you two, this was just what I needed for my site as well :)