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.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, Ed, biapar, Willr, Ingo, swaiba

Drag and Drop reordering gone ?


Go to End


4 Posts   1582 Views

Avatar
teejay

Community Member, 63 Posts

29 January 2010 at 4:46pm

Edited: 29/01/2010 4:46pm

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

Forum Moderator, 4102 Posts

29 January 2010 at 5:16pm

Have you registered the class in SortableDataObject?

Avatar
teejay

Community Member, 63 Posts

29 January 2010 at 5:19pm

Edited: 29/01/2010 5:26pm

Nope how ? In the config ?

update:

like this

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

Avatar
Tom B.

Community Member, 5 Posts

8 February 2011 at 11:48pm

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