Changes between Version 12 and Version 13 of CondFieldsGenshiPlugin


Ignore:
Timestamp:
Jul 15, 2015, 1:24:53 PM (9 years ago)
Author:
figaro
Comment:

Cosmetic changes, removed 'hidden' tag

Legend:

Unmodified
Added
Removed
Modified
  • CondFieldsGenshiPlugin

    v12 v13  
    55== Description
    66
    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
     7This plugin allows you to hide or show fields when creating or viewing a ticket, depending on the ticket type. Only the
    88presentation changes, not the contents of the ticket.
    99
    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.
     10CondFieldsGenshiPlugin is derived from the CondFieldsPlugin, with the difference that it is completely based on Genshi instead of using Javascript. Moreover, you can select whether selected fields are hidden or shown by default.
    1111
    1212This plugin is standalone; the patch `blackmagic-conditionalfields.patch` in #2486 did not match with newer releases of Trac 0.11.
     
    1414Some 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.
    1515
    16 It should be easy to extend this plugin, eg for dependence on other parameters than ticket type.
     16It should be easy to extend this plugin, eg for dependence on parameters other than ticket type.
    1717
    1818The plugin was tested under Trac 0.11 and 0.12.
     
    3838== Configuration
    3939
    40 First, configure the `trac.ini` file as in this example:
     40First, configure your `trac.ini` file as in this example:
    4141
    42 {{{
    43 #!ini
     42{{{#!ini
    4443[components]
    4544condfieldsgenshi.* = enabled
     
    6160
    6261The entry:
    63  {{{
    64  #!ini
    65  default = disable
    66  }}}
     62 {{{#!ini
     63default = disable
     64}}}
    6765
    6866means that the field listed under tweaks are '''not''' shown by default.
     
    7169
    7270To disable/enable a field independent of the ticket type, simply write a line like:
    73  {{{
    74  #!ini
    75  field1.type_cond = None
    76  }}}
     71 {{{#!ini
     72field1.type_cond = None
     73}}}
    7774
    7875Supposing there is no None type.
     
    8481When the ticket type is given as an URL parameter only:
    8582
    86   .../newticket?type=task
     83  `.../newticket?type=task`
    8784
    8885and the ticket type field is disabled, this plugin works nevertheless, in contrast to the CondFieldsPlugin.