Set of SilverStripe CMS GridField components to facilitate bulk file upload & record editing.
- Bulk Upload: Upload multiple images or files at once into DataObjects
- Bulk Manager: Delete, Unlink, Edit (and more) multiple records at once
composer require colymba/gridfield-bulk-editing-tools
Upload multiple images or files at once into DataObjects. Perfect for galleries and the like.
$config->addComponent(new \Colymba\BulkUpload\BulkUploader());
By default BulkUploader
will write to the current stage (most likely Draft). To auto publish your DataObject
, use the following param or config:
$config->addComponent(new \Colymba\BulkUpload\BulkUploader(null, null, true));
OR
$config->getComponentByType('Colymba\\BulkUpload\\BulkUploader')->setAutoPublishDataObject(true);
Your DataObject
should own
the Image
/File
relation so it is published at the same time: See SilverStripe DataObject ownership DOC
See BULK_UPLOAD.md for detailed configuration.
Perform actions on multiple records straight from the GridField
$config->addComponent(new \Colymba\BulkManager\BulkManager());
See BULK_MANAGER.md for detailed configuration.
npm run watch
for developmentnpm run dist
before pushing to the repo
Translations of the natural language strings are managed through a third party translation interface, transifex.com.
Please use https://www.transifex.com/silverstripe/silverstripe-gridfield-bulk-editing-tools to contribute translations, rather than sending pull requests with YAML/JS files.