Experimental project
This is a sandbox project, which contains experimental code for developer use only.
A basic / proof-of-concept module that enables multi-select for Media. Works by providing a 'Media Multiselect' widget instead of the standard 'Media Browser'. If you field only allows 1 value, the normal widget will be used.
If you have any cardinality besides 1, it will show what looks like the normal multi-cardinality Media widget, except it allows selection of multiple Media entities at a time.
If you have fixed cardinality, the 'Add more' button will disappear once you reach your cardinality limit. If you choose more Media entities than there is "left", only as many as the field allows will be chosen!
Installing
Needs a very up-to-date (Nov 1st 2012) version of Media, because a required patch was only committed then.
Works best if you also have the plupload module installed, so you can upload multiple files at a time too. If you are going to use plupload, you should also have multiform installed.
Changelog
Nov 6th 2012: Added code that improves the behavior of the 'Remove'-buttons, so that the widget is ajax-reloaded with the item removed, instead of just blanking out the values.
Nov 8th 2012: Added support for multiple-fixed cardinality (ie 2, 3, 4, 5, .., 9).
The hope of this module is to prove that the system works, so it can hopefully later be merged into Media itself.
Project information
- Created by fangel on , updated