Changes between Version 16 and Version 17 of DynamicVariablesPlugin
- Timestamp:
- May 13, 2017, 5:43:40 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DynamicVariablesPlugin
v16 v17 2 2 3 3 = 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 }}} 4 10 5 11 == Description … … 56 62 == Installation and Configuration 57 63 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: 64 1. See [t:TracPlugins TracPlugins] for installation details and options. Enable the plugin through the //Plugins// admin page, or in your `trac.ini` file: 68 65 {{{#!ini 69 66 [components] 70 67 dynvars.* = enabled 71 68 }}} 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: 69 1. (Optional) Set a {{{[dynvars]}}} section of field names with explicit option values: 76 70 {{{#!ini 77 71 [dynvars] 78 72 daysback.options = 7|30 79 73 }}} 80 81 74 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. 75 1. Create/modify reports so that the names used for dynamic variables match the names of the select field that it corresponds to. 84 76 85 77 == Recent Changes