Changes between Version 11 and Version 12 of CondFieldsGenshiPlugin
- Timestamp:
- Mar 19, 2015, 10:50:17 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CondFieldsGenshiPlugin
v11 v12 1 1 [[PageOutline(2-5,Contents,pullout)]] 2 2 3 = Conditionally display fields based on ticket type =3 = Conditionally display fields based on ticket type 4 4 5 == Description ==5 == Description 6 6 7 With the help of this Trac plugin you can hide or show fields when 8 creating or viewing a ticket, depending on the ticket type. Only the 7 With the help of this Trac plugin you can hide or show fields when creating or viewing a ticket, depending on the ticket type. Only the 9 8 presentation changes, not the contents of the ticket. 10 9 11 CondFieldsGenshiPlugin is derived from the CondFieldsPlugin, but it is completely based on Genshi now instead of using 12 Javascript. Moreover, you can select whether selected fields are hidden 13 or shown by default. 10 CondFieldsGenshiPlugin is derived from the CondFieldsPlugin, but it is completely based on Genshi now instead of using Javascript. Moreover, you can select whether selected fields are hidden or shown by default. 14 11 15 12 This plugin is standalone; the patch `blackmagic-conditionalfields.patch` in #2486 did not match with newer releases of Trac 0.11. 16 13 17 Some problems reported about the more powerful DynamicFieldsPlugin (bad scaling 18 for many fields, malfunction if fields are internally sorted, clearing value of hidden fields) should not occur here. 14 Some problems reported about the more powerful DynamicFieldsPlugin (bad scaling for many fields, malfunction if fields are internally sorted, clearing value of hidden fields) should not occur here. 19 15 20 It should be easy to extend this plugin, e.g. for dependence on other parameters 21 than ticket type. 16 It should be easy to extend this plugin, eg for dependence on other parameters than ticket type. 22 17 23 The plugin was tested under Trac 0.1 2 and 0.11.18 The plugin was tested under Trac 0.11 and 0.12. 24 19 25 == Bugs/Feature Requests ==20 == Bugs/Feature Requests 26 21 27 22 Existing bugs and feature requests for CondFieldsGenshiPlugin are … … 31 26 [http://trac-hacks.org/newticket?component=CondFieldsGenshiPlugin&owner=Reinhard new ticket]. 32 27 33 == Download == 28 [[TicketQuery(component=CondFieldsGenshiPlugin&group=type,format=progress)]] 29 30 == Download 34 31 35 32 Download the zipped source from [download:condfieldsgenshiplugin here]. 36 33 37 == Source ==34 == Source 38 35 39 36 You can check out CondFieldsGenshiPlugin from [http://trac-hacks.org/svn/condfieldsgenshiplugin here] using Subversion, or [source:condfieldsgenshiplugin browse the source] with Trac. 40 37 41 == Example ==38 == Configuration 42 39 43 First, configure t rac.inias in this example:40 First, configure the `trac.ini` file as in this example: 44 41 45 42 {{{ … … 60 57 '''Effect:''' 61 58 62 Now field1 will be shown only if the ticket type is defect, field2 63 only if the ticket type is task, and field3 only if the ticket type is 59 Now field1 will be shown only if the ticket type is defect, field2 only if the ticket type is task, and field3 only if the ticket type is 64 60 neither "task" nor "enhancement". 65 61 … … 70 66 }}} 71 67 72 means that the field listed under tweaks are NOTshown by default.68 means that the field listed under tweaks are '''not''' shown by default. 73 69 74 70 The default value is `default = enable`. 75 71 76 To disable/enable a field independent of the ticket type, simply write a line 77 like: 72 To disable/enable a field independent of the ticket type, simply write a line like: 78 73 {{{ 79 74 #!ini … … 81 76 }}} 82 77 83 (supposed there is no None type :-).78 Supposing there is no None type. 84 79 85 When you change the ticket type, you must type preview resp. submit 86 before you can see the effect of of condfieldsgenshi. 87 80 When you change the ticket type, you must type preview respectively submit before you can see the effect of condfieldsgenshi. 88 81 89 82 '''Bug fix done for type field''' … … 93 86 .../newticket?type=task 94 87 95 and the ticket type field is disabled, this plugin works nevertheless 96 (in contrast to the CondFieldsPlugin). 88 and the ticket type field is disabled, this plugin works nevertheless, in contrast to the CondFieldsPlugin. 97 89 98 90 The type field label is extended by (Fixed) in this case now. 99 91 100 == Recent Changes ==92 == Recent Changes 101 93 102 94 [[ChangeLog(condfieldsgenshiplugin, 3)]] 103 95 104 == Author/Contributors ==96 == Author/Contributors 105 97 106 98 '''Author:''' [wiki:Reinhard] [[BR]] 107 '''Maintainer:''' [ wiki:Reinhard] [[BR]]99 '''Maintainer:''' [[Maintainer]] [[BR]] 108 100 '''Contributors:'''