Changes between Version 8 and Version 9 of CondFieldsGenshiPlugin


Ignore:
Timestamp:
Sep 27, 2012 9:21:06 PM (22 months ago)
Author:
rjollos
Comment:

Added Syntax highlighting.

Legend:

Unmodified
Added
Removed
Modified
  • CondFieldsGenshiPlugin

    v8 v9  
    4545First, configure trac.ini as in this example: 
    4646 
    47   [components][[BR]] 
    48   condfieldsgenshi.* = enabled[[BR]] 
    49   ...[[BR]] 
    50   [condfieldsgenshi][[BR]] 
    51   tweaks = field1, field2[[BR]] 
    52   default = disable[[BR]] 
    53   field1.type_cond = defect[[BR]] 
    54   field2.type_cond = task[[BR]] 
     47{{{ 
     48#!ini 
     49[components] 
     50condfieldsgenshi.* = enabled 
     51 
     52... 
     53 
     54[condfieldsgenshi] 
     55tweaks = field1, field2 
     56default = disable 
     57field1.type_cond = defect 
     58field2.type_cond = task 
     59}}} 
    5560 
    5661'''Effect:''' 
     
    5964only if the ticket type is task. 
    6065 
    61 The entry[[BR]] 
    62   default = disable[[BR]] 
    63 means that the field listed under tweaks 
    64 are NOT shown by default. 
    65 The default value is default = enable. 
     66The entry: 
     67 {{{ 
     68 #!ini 
     69 default = disable 
     70 }}} 
     71 
     72means that the field listed under tweaks are NOT shown by default. 
     73 
     74The default value is `default = enable`. 
    6675 
    6776To disable/enable a field independent of the ticket type, simply write a line 
    68 like 
    69  
    70   field1.type_cond = None 
     77like: 
     78 {{{ 
     79 #!ini 
     80 field1.type_cond = None 
     81 }}} 
    7182 
    7283(supposed there is no None type :-).