wiki:CustomSelectAdminPlugin

Version 7 (modified by jetheis, 5 years ago) (diff)

--

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:
    • Drop the compiled egg into the plugins directory of your Trac instance
      $ svn export http://trac-hacks.org/svn/customselectadminplugin/0.11
      $ cd 0.11
      $ 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 http://trac-hacks.org/svn/customselectadminplugin/0.11
      

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
Contributors: