| 1 | [[PageOutline(2-5,Contents,pullout)]] |
| 2 | |
| 3 | = Catagorized fields for Trac |
| 4 | |
| 5 | == Description |
| 6 | |
| 7 | This plugin purpose on catagorizing ticket fields. |
| 8 | |
| 9 | This plugin is designed for follow situation: |
| 10 | * Your ticket has lot of fields. |
| 11 | * The fields of ticket is varying in different condition. |
| 12 | * Some fields of ticket should only be visible to authorized user (not implemented) |
| 13 | |
| 14 | == !Bugs/Feature Requests |
| 15 | |
| 16 | Existing bugs and feature requests for CatagorizedFieldsPlugin are |
| 17 | [report:9?COMPONENT=CatagorizedFieldsPlugin here]. |
| 18 | |
| 19 | If you have any issues, create a |
| 20 | [http://trac-hacks.org/newticket?component=CatagorizedFieldsPlugin&owner=cauly new ticket]. |
| 21 | |
| 22 | == Download |
| 23 | |
| 24 | Download the zipped source from [export:catagorizedfieldsplugin here]. |
| 25 | |
| 26 | == Source |
| 27 | |
| 28 | You can check out CatagorizedFieldsPlugin from [http://trac-hacks.org/svn/catagorizedfieldsplugin here] using Subversion, or [source:catagorizedfieldsplugin browse the source] with Trac. |
| 29 | |
| 30 | == Installation |
| 31 | |
| 32 | 1. Install the plugin just like any other |
| 33 | 2. Set up the trac.ini |
| 34 | 1. In [components] section, add:{{{catagorizedfields.catagorizedfields = enabled}}} |
| 35 | 2. Create a {{{[catagorized-fields]}}} section, and adds the catagories. e.g.: |
| 36 | {{{ |
| 37 | [catagorized-fields] |
| 38 | # declare a catagory in syntax "(catagory_id) = (catagory_display_name)" |
| 39 | cat1 = catagory_one |
| 40 | |
| 41 | # specify the hide condition in syntax "(catagory_id).hide_when_(condition-field) = (field-value1)[, (field-value2), ..]" |
| 42 | cat1.hide_when_status = new, closed |
| 43 | }}} |
| 44 | 3. In {{{[ticket-custom]}}} section, specify your fields with catagory property: |
| 45 | {{{ |
| 46 | [ticket-custom] |
| 47 | custom_field1 = text |
| 48 | |
| 49 | # declare one field with catagory in syntax "(field_id).catagory = (catagory_id)" |
| 50 | custom_field1.catagory = cat1 |
| 51 | }}} |
| 52 | 3. That's all. |
| 53 | |
| 54 | |
| 55 | |
| 56 | == Recent Changes |
| 57 | |
| 58 | [[ChangeLog(catagorizedfieldsplugin, 3)]] |
| 59 | |
| 60 | == !Author/Contributors |
| 61 | |
| 62 | '''Author:''' [wiki:cauly] [[BR]] |
| 63 | '''Maintainer:''' [[Maintainer]] [[BR]] |
| 64 | '''Contributors:''' |