Maintainer(s):
jam13
Supported by: Not supported
Visit the support forum Download
Allows simplified management of has_many and many_many relationships. Handles more records than a checkbox set, but much easier to use than a complex table field.
A field primarily for managing has_many and many_many relationships, but should also work with Varchar fields.
Presents an interface composed of two listboxes with add/remove buttons to move items from one box to the other. Sometimes refered to as an "options transfer" field.
Code has now been rewritten to make it more portable:
- Extends standard SilverStripe CheckboxSetField and inherits it's constructor
- Degrades to a standard <select multiple="multiple"> field without javascript
Example use:
static $many_many = array ('ThingPages'=>'ThingPage');
$source = DataObject::get('ThingPages);
new MultiSelectField(
"ThingPages", // Relationship
"Related Thing Pages", // Field name
$source->map('ID','Title') // Source records (array)
)
Version:
[v0.3]
Date: 2010-10-13
Compatible with: SilverStripe 2.3, 2.4
Download:
multiselectfield-v0.3.tar.gz
Subversion access: http://svn.gpmd.net/svn/open/multiselectfield/tags/0.3
Version:
[v0.2]
Date: 2009-08-27
Compatible with: SilverStripe 2.3
Download:
multiselectfield-v0.2.tar.gz
Subversion access: http://svn.gpmd.net/svn/open/multiselectfield/tags/0.2/
To get a preview of our next release, download the latest build of unstable trunk here. Please
be careful: this is more likely to contain bugs, especially on modules undergoing a lot of development.
Revision: #154
Build Date: 2010-10-14
Download: multiselectfield-trunk-r154.tar.gz
Unstable Subversion access: http://svn.gpmd.net/svn/open/multiselectfield/trunk/
Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com
Comments on this website? Please give feedback.