2017 © Pedro Peláez
 

silverstripe-module silverstripe-extended-sortable-gallery-field

Easily upload multiple images, and drag and drop the order with support for subclasses of Image.

image

xmarkclx/silverstripe-extended-sortable-gallery-field

Easily upload multiple images, and drag and drop the order with support for subclasses of Image.

  • Tuesday, December 22, 2015
  • by xmarkclx
  • Repository
  • 1 Watchers
  • 1 Stars
  • 29 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 2 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

SilverStripe Extended SortableGalleryField

Based off http://addons.silverstripe.org/add-ons/jonshutt/silverstripe-sortable-gallery-field., (*1)

Bulk upload images into a silverstripe gallery, drag and drop reordering. Choose files from desktop or images previously uploaded, (*2)

The main difference is that this one allows sorting of subclasses of Image., (*3)

I.e, (*4)

MyImageClass extends Image., (*5)

I found out image sorting does not work properly of the this is based off as of writing and made fixes but the fixes completely changed how it is done on the backend or the interface, thus it might break code that interfaces with John's code., (*6)

FEATURES

  • Subclasses support
  • bulk upload images
  • add images from files previously uploaded
  • drag and drop ordering of images

SAMPLE USAGE

class GalleryPage extends Page {
    static $has_many = array(       
        'Images' => 'CustomImage'  
    );
    
    function getCMSFields() {
        $fields = parent::getCMSFields();
        
        $galleryField = new SortableGalleryField(
                $name = 'Images',
                $pageClassName = 'GalleryPage',
                $className = 'CustomImage',
                $title = 'Upload one or more images'
            );
        $fields->addFieldToTab('Root.Images', $galleryField);
        
        return $fields;
    }
}

The Versions

22/12 2015

dev-master

9999999-dev

Easily upload multiple images, and drag and drop the order with support for subclasses of Image.

  Sources   Download

BSD-3-Clause

The Requires

 

by Mark Christian D. Lopez

upload gallery sortable bulk-upload orderable

11/12 2014

1.x-dev

1.9999999.9999999.9999999-dev

Easily upload multiple images, and drag and drop the order

  Sources   Download

BSD-3-Clause

The Requires

 

upload gallery sortable bulk-upload orderable

11/12 2014

1.0.3

1.0.3.0

Easily upload multiple images, and drag and drop the order

  Sources   Download

BSD-3-Clause

The Requires

 

upload gallery sortable bulk-upload orderable

05/12 2014

1.0.2

1.0.2.0

Easily upload multiple images, and drag and drop the order

  Sources   Download

BSD-3-Clause

The Requires

 

upload gallery sortable bulk-upload orderable

04/12 2014

1.0.1

1.0.1.0

Easily upload multiple images, and drag and drop the order with support for subclasses of Image.

  Sources   Download

BSD-3-Clause

The Requires

 

by Mark Christian D. Lopez

upload gallery sortable bulk-upload orderable

04/12 2014

1.0.0

1.0.0.0

Easily upload multiple images, and drag and drop the order

  Sources   Download

BSD-3-Clause

The Requires

 

upload gallery sortable bulk-upload orderable