Skip to content
SilverStripe GridField Components set for bulk upload and bulk record edit, unlink & delete 📦💥
PHP JavaScript CSS Scheme
Branch: master
Clone or download
NightJar Merge pull request #191 from creative-commoners/pulls/master/slip-slo…
…p-slap-in-wrap

FIX Wrap Injector transformation in DOMContentLoaded listener
Latest commit 7f871a7 Mar 19, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.tx Treansifex and Build/Dist Scripts :shipit: Feb 28, 2018
client FIX Wrap Injector transformation in DOMContentLoaded listener Mar 19, 2019
docs/en Readme update for bulk manager Feb 12, 2018
lang NEW Versioned Bulk Actions (Publish, Unpublish & Archive) Mar 2, 2018
src Get current controller via curr() (removes pushCurrent issue) Sep 30, 2018
templates/Colymba API Unified json responses via new HTTPBulkToolsResponse Mar 14, 2018
.editorconfig Update webpack implementation and refactor JS to remove lint warnings ( Aug 16, 2018
.eslintignore Update webpack implementation and refactor JS to remove lint warnings ( Aug 16, 2018
.eslintrc.js Update webpack implementation and refactor JS to remove lint warnings ( Aug 16, 2018
.gitattributes
.gitignore Treansifex and Build/Dist Scripts :shipit: Feb 28, 2018
.sass-lint.yml Update webpack implementation and refactor JS to remove lint warnings ( Aug 16, 2018
.scrutinizer.yml Added standard Scrutinizer config Feb 16, 2016
.upgrade.yml Clean up 🚿 Feb 27, 2018
LICENSE Update license to BSD 3-clause Feb 1, 2018
README.md NEW Handle Versioned DataObject Mar 2, 2018
_config.php Clean up 🚿 Feb 27, 2018
composer.json API Unified json responses via new HTTPBulkToolsResponse Mar 14, 2018
package.json Update webpack implementation and refactor JS to remove lint warnings ( Aug 16, 2018
transifex.js FIX js lang template and i18n js requirements path Feb 28, 2018
webpack.config.js Update webpack implementation and refactor JS to remove lint warnings ( Aug 16, 2018
yarn.lock Update webpack implementation and refactor JS to remove lint warnings ( Aug 16, 2018

README.md

GridField Bulk Editing Tools

Latest Stable Version Latest Unstable Version License

Set of SilverStripe 4 GridField components to facilitate bulk file upload & record editing.

Components:

  • Bulk Upload: Upload multiple images or files at once into DataObjects
  • Bulk Manager: Delete, Unlink, Edit (and more) multiple records at once

Requirements

  • SilverStripe 4.0 (master / 3.+)
  • SilverStripe 3.1 (version 2.+ / 1.+)
  • Silverstripe 3.0 (version 0.5)

Installation

composer require colymba/gridfield-bulk-editing-tools

3.0.0 deprecations

The 3.x versions of this module require SilverStripe 4.x+, and PHP 5.5 or above:

  • Namespaces are implemented, and some class names have changed (see .upgrade.yml for mapping)

2.0.0 deprecations

Major deprections in latest 2.0.0 release:

  • The GridFieldBulkImageUpload has been renamed to GridFieldBulkUpload.
  • onBulkImageUpload callback has been renamed to onBulkUpload

Bulk Upload

Upload multiple images or files at once into DataObjects. Perfect for galleries and the like.

$config->addComponent(new \Colymba\BulkUpload\BulkUploader());

Versioned

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.

Bulk Manager

Perform actions on multiple records straight from the GridField

$config->addComponent(new \Colymba\BulkManager\BulkManager());

See BULK_MANAGER.md for detailed configuration.

Tooling

  • npm run watch for development
  • npm run dist before pushing to the repo

Translations

Translations of the natural language strings are managed through a third party translation interface, transifex.com.

Please use https://www.transifex.com/projects/p/gridfieldbulkeditingtools/ to contribute translations, rather than sending pull requests with YAML/JS files.

License and Copyright

BSD 3-clause license

You can’t perform that action at this time.