Changes between Version 2 and Version 3 of CondFieldsGenshiPlugin
- Timestamp:
- May 31, 2012, 4:20:46 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CondFieldsGenshiPlugin
v2 v3 9 9 presentation changes, not the contents of the ticket. 10 10 11 CondFieldsGenshiPlugin is derived from the CondFieldsPlugin ( "Dynamic fields by ticket type"), but it is completely based on Genshi now instead of using11 CondFieldsGenshiPlugin is derived from the CondFieldsPlugin (Dynamic fields by ticket type), but it is completely based on Genshi now instead of using 12 12 Javascript. Moreover, you can select whether selected fields are hidden 13 13 or shown by default. 14 14 15 This plugin is "standalone"; the patch16 "blackmagic-conditionalfields.patch"in [1] did not match with newer15 This plugin is standalone; the patch 16 blackmagic-conditionalfields.patch in [1] did not match with newer 17 17 releases of Trac 0.11. 18 18 … … 46 46 First, configure trac.ini as in this example: 47 47 48 [components] 49 condfieldsgenshi.* = enabled 50 51 ... 52 53 [condfieldsgenshi] 54 tweaks = field1, field2 55 default = disable 56 field1.type_cond = defect 57 field2.type_cond = task 58 48 [components][[BR]] 49 condfieldsgenshi.* = enabled[[BR]] 50 ...[[BR]] 51 [condfieldsgenshi][[BR]] 52 tweaks = field1, field2[[BR]] 53 default = disable[[BR]] 54 field1.type_cond = defect[[BR]] 55 field2.type_cond = task[[BR]] 59 56 60 57 Effect: 61 58 62 Now field1 will be shown only if the ticket type is "defect", field263 only if the ticket type is "task".59 Now field1 will be shown only if the ticket type is defect, field2 60 only if the ticket type is task. 64 61 65 The entry "default = disable" means that the field listed under "tweaks" 62 The entry[[BR]] 63 default = disable[[BR]] 64 means that the field listed under tweaks 66 65 are NOT shown by default. 67 The default value is "default = enable".66 The default value is default = enable. 68 67 69 68 To disable/enable a field independent of the ticket type, simply write a line … … 72 71 field1.type_cond = None 73 72 74 (supposed there is no "None"type :-).73 (supposed there is no None type :-). 75 74 76 When you change the ticket type, you must type "preview" resp. "submit"75 When you change the ticket type, you must type preview resp. submit 77 76 before you can see the effect of of condfieldsgenshi. 78 77 79 78 80 Bug fix done for "type"field79 Bug fix done for type field 81 80 ----------------------------- 82 81 … … 88 87 (in contrast to the Dynamic fields by ticket type plugin, cf. [1]). 89 88 90 The type field label is extended by "(Fixed)"in this case now.89 The type field label is extended by (Fixed) in this case now. 91 90 92 91 == Recent Changes ==