jonshutt/silverstripe-sortable-gallery-field

Easily upload multiple images, and drag and drop the order

This package's canonical repository appears to be gone and the package has been frozen as a result. Email us for help if needed.

Maintainers

Package info

github.com/jonshutt/SilverStripe-SortableGalleryField

Type:silverstripe-module

pkg:composer/jonshutt/silverstripe-sortable-gallery-field

Statistics

Installs: 1 178

Dependents: 1

Suggesters: 0

Stars: 5

Open Issues: 2

dev-master 2016-02-18 07:32 UTC

This package is not auto-updated.

Last update: 2019-03-18 02:43:44 UTC


README

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

FEATURES

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

SAMPLE USAGE

<?php
class GalleryPage extends Page {

	static $has_many = array(
		'Images' => 'Image'
	);

	function getCMSFields() {
		$fields = parent::getCMSFields();

		$f = new SortableGalleryField('Images', 'My Images');
		$fields->addFieldToTab('Root.Images', $f);

		return $fields;
	}
}