Supported by: Not supported
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
static $many_many = array ('ThingPages'=>'ThingPage');
$source = DataObject::get('ThingPages);
"ThingPages", // Relationship
"Related Thing Pages", // Field name
$source->map('ID','Title') // Source records (array)
Compatible with: SilverStripe 2.3, 2.4
Compatible with: SilverStripe 2.3
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.
Build Date: 2010-10-14
Unstable Subversion access: