Modify

Opened 4 years ago

Last modified 4 years ago

#7156 new task

[customfieldadmin]Support For MultiSelectCustomFields

Reported by: ebencheung Owned by: osimons
Priority: high Component: CustomFieldAdminPlugin
Severity: normal Keywords: customfield, multi
Cc: Trac Release: 0.11

Description

Support for multi select custom field. See MultiSelectCustomFieldsPatch for more information.

Attachments (1)

customfieldsupportmultiselect.diff (2.4 KB) - added by ebencheung 4 years ago.
patch of customfieldadmin for support multi select field

Download all attachments as: .zip

Change History (8)

Changed 4 years ago by ebencheung

patch of customfieldadmin for support multi select field

comment:1 Changed 4 years ago by ebencheung

  • Status changed from new to assigned

comment:2 Changed 4 years ago by ebencheung

  • Resolution set to worksforme
  • Status changed from assigned to closed

comment:3 Changed 4 years ago by ebencheung

  • Resolution worksforme deleted
  • Status changed from closed to reopened

comment:4 Changed 4 years ago by osimons

  • Owner changed from ebencheung to osimons
  • Status changed from reopened to new

With #5838 and #7015 as examples, what really should be done is make the plugin extensible so that other plugins (like some multiselect plugin itself) could contribute the 'multi' editor without changing the plugin itself. That way 'multi' would not be an option if the plugin isn't installed - which is easier for other developers, and more natural to users.

By default the plugin will be supporting the types of fields supported by Trac, and I won't be adding any 'multi', 'date', 'time' or other types of fields unless it becomes part of standard Trac.

However, I'd be happy to commit a patch that makes all fields types 'pluggable' - including the standard ones. The plugin interface would then be responsible for storing and clearing such fields, and also provide the hints needed for generating the input/edit fields.

comment:5 Changed 4 years ago by billmeyer

Please make multi-select field part of the standard installation or plugin.

comment:6 follow-up: Changed 4 years ago by grzesiu_mg@…

  • Priority changed from normal to high

Hi,

I have trac 11.5 installed on Windows. How I can install this plugin ?

comment:7 in reply to: ↑ 6 Changed 4 years ago by ebencheung

Replying to grzesiu_mg@o2.pl:

Hi,

I have trac 11.5 installed on Windows. How I can install this plugin ?

  • Download the source of customfieldadmin
  • Find customfieldadmin/templates/customfieldadmin.html
  • Replace all
    <option py:for="value in ['text', 'select', 'checkbox', 'radio', 'textarea']"
    
    with
    <option py:for="value in ['text', 'select', 'checkbox', 'radio', 'textarea','multi']" 
    

Add Comment

Modify Ticket

Action
as new The owner will remain osimons.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.