Modify

Opened 7 years ago

Last modified 6 years ago

#7156 new task

[customfieldadmin]Support For MultiSelectCustomFields

Reported by: ebencheung Owned by: Odd Simon Simonsen
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 7 years ago.
patch of customfieldadmin for support multi select field

Download all attachments as: .zip

Change History (8)

Changed 7 years ago by ebencheung

patch of customfieldadmin for support multi select field

comment:1 Changed 7 years ago by ebencheung

Status: newassigned

comment:2 Changed 7 years ago by ebencheung

Resolution: worksforme
Status: assignedclosed

comment:3 Changed 7 years ago by ebencheung

Resolution: worksforme
Status: closedreopened

comment:4 Changed 7 years ago by Odd Simon Simonsen

Owner: changed from ebencheung to Odd Simon Simonsen
Status: reopenednew

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 7 years ago by Bill Meyer

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

comment:6 Changed 6 years ago by grzesiu_mg@…

Priority: normalhigh

Hi,

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

comment:7 in reply to:  6 Changed 6 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']" 
    

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain Odd Simon Simonsen.

Add Comment


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

 
Note: See TracTickets for help on using tickets.