Changes between Version 8 and Version 9 of TracComponentAliasPlugin


Ignore:
Timestamp:
May 2, 2018, 7:00:53 PM (6 years ago)
Author:
figaro
Comment:

Moved example to description

Legend:

Unmodified
Added
Removed
Modified
  • TracComponentAliasPlugin

    v8 v9  
    11[[PageOutline(2-5,Contents,pullout)]]
    22
    3 = Trac Component Alias Plugin
     3= Set aliases for Trac components
    44
    55== Description
    66
    77This plugin allows you to change the component based off the selection from a custom field of type `radio` or `select`. The plugin is implemented in Python. The component will change only after the form is submitted, as opposed to some implementations in !JavaScript that may dynamically change the field client-side.
     8
     9As a sample configuration:
     10
     11{{{#!ini
     12; test1 and test2 define the grouping.; the test names can be whatever you want.
     13
     14[component_alias]
     15test1.alias = component1             ; change component to this alias if "TEST" is selected
     16test1.custom_field = custom_field    ; custom ticket field this applies to
     17test1.name = TEST                    ; name from the custom ticket field this applies to
     18test2.alias = component2             ; change component to this alias if "This is a test" is selected
     19test2.custom_field = custom_field    ; custom ticket field this applies to
     20test2.name = This is a test          ; name from the custom ticket field this applies to
     21
     22[ticket-custom]
     23custom_field = select
     24custom_field.options = TEST|This is a test
     25}}}
    826
    927== Bugs/Feature Requests
     
    2947General instructions on installing Trac plugins can be found on the [TracPlugins#InstallingaTracplugin TracPlugins] page.
    3048
    31 == Example
    32 
    33 {{{#!ini
    34 ; test1 and test2 define the grouping.  The name can be whatever you want.
    35 
    36 [component_alias]
    37 test1.alias = component1             ; change component to this alias if "TEST" is selected
    38 test1.custom_field = custom_field    ; custom ticket field this applies to
    39 test1.name = TEST                    ; name from the custom ticket field this applies to
    40 test2.alias = component2             ; change component to this alias if "This is a test" is selected
    41 test2.custom_field = custom_field    ; custom ticket field this applies to
    42 test2.name = This is a test          ; name from the custom ticket field this applies to
    43 
    44 [ticket-custom]
    45 custom_field = select
    46 custom_field.options = TEST|This is a test
    47 }}}
    48 
    4949== Recent Changes
    5050