wiki:CustomSelectAdminPlugin

Version 10 (modified by rjollos, 21 months ago) (diff)

Added page outline and syntax highlighting.

Admin Panels for Custom Fields

Description

The CustomSelectAdmin plugin generates custom admin panels for each custom ticket field that is of type 'select.' These custom panels look and behave very similar to the 'Components', 'Milestones', etc. panels.

Install CustomSelectAdmin

  • By hand:
    • Download and untar the source directory
    • Drop the compiled egg into the plugins directory of your Trac instance
      $ python setup.py bdist_egg
      $ cp dist/CustomSelectAdmin<ADDITIONAL-INFO>.egg <PATH-TO-TRAC-INTANCE>/plugins
      
  • Globally:
    • easy_install the egg so it will apply to all Trac instances
      $ easy_install CustomSelectAdmin
      

Add the following lines to trac.ini (create [components] if it does not exist)

[components]
CustomSelectAdmin.* = enabled

or, if you you don't have access to trac.ini but do have the TRAC_ADMIN permission (the Admin panel shows up in the main nav when you're logged in), you can go to the Plugins section within the Admin area and check 'Enabled' next to CustomSelectAdmin.

Bugs/Feature Requests

Existing bugs and feature requests for CustomSelectAdminPlugin are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from here.

Example

Within the [ticket-custom] section you can add an additional field, (FIELDNAME).panel = (PANELTITLE) to specify what string will display on the left-hand panel selection area inside the Trac Admin section

For Instance:

[ticket-custom]
workcode = select
workcode.label = Work Code
workcode.options = W001 | W002
workcode.value = Plugin
workcode.panel = Work Codes

Recent Changes

[6321] by jetheis on 2009-08-05 02:50:32
Permanently moving project to PyPI. See information for download link.
[6237] by jetheis on 2009-07-20 05:41:04
Removed hyperlinks from template (forgot to do it earlier)
[6236] by jetheis on 2009-07-20 05:37:45
Added README file

Author/Contributors

Author: jetheis
Maintainer: jetheis
Contributors: