Download the PHP package arillo/silverstripe-multiselectfield without Composer
On this page you can find all versions of the php package arillo/silverstripe-multiselectfield. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download arillo/silverstripe-multiselectfield
More information about arillo/silverstripe-multiselectfield
Files in arillo/silverstripe-multiselectfield
Package silverstripe-multiselectfield
Short Description A sortable multiple select field for managing many-to-many relations
License BSD-3-Clause
Homepage https://github.com/arillo-ch/silverstripe-multiselectfield
Informations about the package silverstripe-multiselectfield
MultiSelectField
A drag & drop sortable select field for managing many-to-many relations.
Inspired by https://github.com/kinglozzer/silverstripe-multiselectfield which breaks in SilverStripe 4.12+
Installation:
Composer:
Download:
Simply clone or download this repository and put it in a folder called 'multiselectfield' in your SilverStripe installation folder, then run dev/build.
Example:
The field currently only supports many-to-many relations. The constructor requires an argument for a field to sort on, which you need to define in your $many_many_extraFields.
The following is an example of how to use MultiSelectField in a simple many-to-many relationship with a "Sort" extra field:
All versions of silverstripe-multiselectfield with dependencies
silverstripe/framework Version ^6.0
arillo/silverstripe-cms-alpine Version ^2.0