wiki:TracMultiSelectBoxPlugin

Support simple multi selectbox field

Notice: This plugin is unmaintained and available for adoption.

Description

This plugin treats pseudo multiple select values with the ticket custom field. See below for an example. It requires Trac 1.0 or higher, since it uses the list format of text type. See also TracTicketsCustomFields.

Key features:

  • Provide simple multiple select values field.
  • Compared to other alternatives, this plugin is intended to be simple and light weight, easy to use.

Select multiple values:

select multiple values

Show selected multiple values:

show selected multiple values

Revert selected multiple values:

revert selected multiple values

Reverting multiple select values during editing is not possible (confirmed for version 1.0.2). To use Trac's revert function, you must apply a patch included in the source distribution:

$ cd path/to/trac
$ patch -p0 < patch/support-multipleselct-for-reverthandler-trac10.patch
$ restart Trac

This plugin was inspired by MultiSelectFieldPlugin, which is a good choice, if you are looking for a more feature-rich selectbox.

Bugs/Feature Requests

Existing bugs and feature requests for TracMultiSelectBoxPlugin are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from here.

The plugin is also available on PyPI.

Source

You can check out TracMultiSelectBoxPlugin from here using Subversion, or browse the source with Trac.

Installation

General instructions on installing Trac plugins can be found on the TracPlugins page.

Configuration

To use multiple select values change your trac.ini file as follows:

[components]
multiselectbox.filter.multiselectbox = enabled

[ticket-custom]
multiselectfield = text
multiselectfield.format = list
multiselectfield.label = my custom field
multiselectfield.multiple = true
multiselectfield.options = foo bar baz  ; each value is delimited with space
multiselectfield.size = 4               ; size attribute passed to select tag
multiselectfield.value = bar            ; default value when new ticket is created

Recent Changes

17942 by rjollos on 2020-12-23 23:39:59
Code drop from PyPI
(more)

Author/Contributors

Author: t2y
Maintainer: none (needsadoption)
Contributors:

Last modified 4 years ago Last modified on Dec 23, 2020, 11:43:13 PM

Attachments (3)

Download all attachments as: .zip