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->toDropdownMap('ID','Title') // Source records (array)
)
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: #56
Build Date: 2010-03-03
Download: multiselectfield-trunk-r56.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.