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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Customising the CMS /

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

Adding Drag & Drop functionality in Backend


Go to End


10 Posts   6456 Views

Avatar
SamSmooth

Community Member, 18 Posts

19 November 2010 at 11:52pm

:) <= flushing red smiley

thank you!!!

Avatar
marc79

Community Member, 65 Posts

9 May 2013 at 10:49am

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

Go to Top