We've moved! You can find modules, themes and widgets on http://addons.silverstripe.org.
This page will no longer be updated, and disappear soon. Module maintainers, please read our announcement to find out how to add your modules there.

MultiSelectField [v0.3]

Maintainer(s): jam13
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
- 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)
)
Module screenshot

Release(s)

  • Latest release

    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

  • Older release(s)

    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/

  • Latest trunk build

    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.