Jump to:

5539 Posts in 1738 Topics by 1224 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Adding Drag & Drop functionality in Backend

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

Page: 1 2
Go to End
Author Topic: 3926 Views
  • SamSmooth
    Avatar
    Community Member
    18 Posts

    Re: Adding Drag & Drop functionality in Backend Link to this post

    <= flushing red smiley

    thank you!!!

  • marc79
    Avatar
    Community Member
    65 Posts

    Re: Adding Drag & Drop functionality in Backend Link to this post

    Hi,

    I have set up a gallery page which uses uploadify and all is working fine or so I thought. I now want to add the ability to re-order the images in the gallery, ideally by dragging and dropping the files. The module page seems to suggest this is possible but I am not able to figure out how to get this up and running.

    My Gallery Page looks something like this:

    class GalleryImagesPage extends Page {

    static $db = array(
    );

    static $many_many = array(
       'GalleryImage' => 'Image',
    );

    function getCMSFields() {

       $fields = parent::getCMSFields();
          
       $fields->addFieldToTab('Root.Content.Gallery', new MultipleImageUploadField('GalleryImage', 'Image'));

    return $fields;
       
    }

    }

    class GalleryImagesPage_Controller extends Page_Controller {

    }

    I am using silverstripe 2.4.7

    It seems all the links to the documentation for this module are returning 404s, so any help would be greatly appreciated.

    Thanks

    3926 Views
Page: 1 2
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.