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.
Installs: 1 178
Dependents: 1
Suggesters: 0
Security: 0
Stars: 5
Watchers: 1
Forks: 5
Open Issues: 2
Type:silverstripe-module
Requires
- silverstripe/cms: ~3.0
- silverstripe/framework: ^3.1
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;
}
}