Changes between Version 16 and Version 17 of DynamicVariablesPlugin


Ignore:
Timestamp:
May 13, 2017, 5:43:40 PM (7 years ago)
Author:
Ryan J Ollos
Comment:

Deprecated.

Legend:

Unmodified
Added
Removed
Modified
  • DynamicVariablesPlugin

    v16 v17  
    22
    33= Default and convert report dynamic variables to dropdowns
     4
     5{{{#!box warn
     6**Notice:** This plugin is deprecated in Trac 1.3.2 and later, which provides equivalent features:
     7* Dynamic variables are autocompleted //(Since 1.3.2)// ([trac:#12230])
     8* Default values for dynamic variables can be defined in SQL comments //(Since 1.3.1)// ([trac:#11837])
     9}}}
    410
    511== Description
     
    5662== Installation and Configuration
    5763
    58  1. Install the plugin, after downloading and unzipping:
    59  {{{#!sh
    60 cd dynamicvariablesplugin/0.12
    61 sudo python setup.py bdist_egg
    62 sudo cp dist/TracDynamicVariables*.egg /your/trac/location/plugins/
    63 }}}
    64 
    65  See [t:TracPlugins TracPlugins] for more installation details and options. You will likely need to restart Trac's web server after installation.
    66 
    67  2. Enable the plugin in your `trac.ini` file:
     641. See [t:TracPlugins TracPlugins] for installation details and options. Enable the plugin through the //Plugins// admin page, or in your `trac.ini` file:
    6865 {{{#!ini
    6966[components]
    7067dynvars.* = enabled
    7168}}}
    72 
    73  You can alternatively use the Trac Web Admin GUI to enable any or all rules.
    74 
    75  3. (Optional) Set a {{{[dynvars]}}} section of field names with explicit option values:
     691. (Optional) Set a {{{[dynvars]}}} section of field names with explicit option values:
    7670 {{{#!ini
    7771[dynvars]
    7872daysback.options = 7|30
    7973}}}
    80 
    8174 In the above example, {{{daysback}}} is not a custom ticket field, but can set a {{{DAYSBACK}}} dynamic variable via a dropdown list with the specified options. A {{{[dynvars]}}} section is not needed to configure dynamic variables that exactly match built-in or custom field names as shown in the screenshots below.
    82 
    83  4. Create/modify reports so that the names used for dynamic variables exactly match the names of the select field that it corresponds to. See an example below.
     751. Create/modify reports so that the names used for dynamic variables match the names of the select field that it corresponds to.
    8476
    8577== Recent Changes