Jump to:

7936 Posts in 1537 Topics by 944 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Drag and Drop reordering gone ?

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1
Go to End
Author Topic: 1246 Views
  • teejay
    Avatar
    Community Member
    63 Posts

    Drag and Drop reordering gone ? Link to this post

    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

  • UncleCheese
    Avatar
    4085 Posts

    Re: Drag and Drop reordering gone ? Link to this post

    Have you registered the class in SortableDataObject?

  • teejay
    Avatar
    Community Member
    63 Posts

    Re: Drag and Drop reordering gone ? Link to this post

    Nope how ? In the config ?

    update:

    like this

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

  • Tom B.
    Avatar
    Community Member
    5 Posts

    Re: Drag and Drop reordering gone ? Link to this post

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

    1246 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.