7921 Posts in 1359 Topics by 933 members
DataObjectManager Module
SilverStripe Forums » DataObjectManager Module » Drag and Drop reordering gone ?
Discuss the DataObjectManager module, and the related ImageGallery module.
Moderators: martimiz, UncleCheese, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 1099 Views |
-
Drag and Drop reordering gone ?

29 January 2010 at 4:46pm Last edited: 29 January 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 -
Re: Drag and Drop reordering gone ?

29 January 2010 at 5:16pm
Have you registered the class in SortableDataObject?
-
Re: Drag and Drop reordering gone ?

29 January 2010 at 5:19pm Last edited: 29 January 2010 5:26pm
Nope how ? In the config ?
update:
like this
SortableDataObject::add_sortable_class('ImageResource'); cool thx
-
Re: Drag and Drop reordering gone ?

8 February 2011 at 11:48pm
Thanks, you two, this was just what I needed for my site as well
| 1099 Views | ||
|
Page:
1
|
Go to Top |

