Multiselect custom display
This is a custom suggest displayer for DBList object properties which adapts the suggest feature to multiple selection. |
Type | XAR |
Category | |
Developed by | Ludovic Dubost, Marta Girdea, Anca Luca, Raluca Stavro, Paul Pantiru, Mohamed Boussaa |
Active Installs | 25 |
Rating | |
License | GNU Lesser General Public License 2.1 |
Table of contents
Description
This is a custom suggest displayer for DBList object properties which adapts the suggest feature to multiple selection.
Usage
To activate it, you must edit the XClass and set, for the target property, the fields Use suggest and Multiple select to true, Display Type to input and the field Custom display to:
I the Custom display you can also add a few options:
#set($isUser = true)
#set($isLink = true)
#set($isExternalLink = true)
#set($displayAddButton = true)
{{/velocity}}
Edit items
Since the version 1.3, it is now possible to edit the items selected, or to create new ones.
To enable this feature, you need to set the following variable in the custom displayer:
To force the space where the new items will be created:
Screenshots
With the options to edit items:
Prerequisites & Installation Instructions
We recommend using the Extension Manager to install this extension (Make sure that the text "Installable with the Extension Manager" is displayed at the top right location on this page to know if this extension can be installed with the Extension Manager). Note that installing Extensions when being offline is currently not supported and you'd need to use some complex manual method.
You can also use the following manual method, which is useful if this extension cannot be installed with the Extension Manager or if you're using an old version of XWiki that doesn't have the Extension Manager:
- Log in the wiki with a user having Administration rights
- Go to the Administration page and select the Import category
- Follow the on-screen instructions to upload the downloaded XAR
- Click on the uploaded XAR and follow the instructions
- You'll also need to install all dependent Extensions that are not already installed in your wiki
After importing the XAR, the document XWiki.SuggestDisplay is created and can be used as described above.
Release Notes
v1.5
v1.4
v1.3
v1.2
Added support for upgrade from earlier versions, with Extension Manager
v1.1
New version with:
- Compatibility with 5.2 +
- Added options for add button, $isLink, $isExternalLink and $isUser
- Added drag & drop functionality for reordering values
- Fixed conflict with single select with suggest
- Fixed bug with values containing comma
Issue: - Version 1.0 cannot be simply upgraded to 1.1 via Extension Manager (the old version has to be removed and the new one installed)
v1.0
Initial version
Dependencies
Dependencies for this extension (org.xwiki.contrib:displayer-multiselect-suggest 1.6):
- org.webjars:jquery-form 3.51