Changes between Version 19 and Version 20 of TracTicketChainedFieldsPlugin
- Timestamp:
- Mar 13, 2015, 10:19:08 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracTicketChainedFieldsPlugin
v19 v20 1 1 [[PageOutline(2-5,Contents,pullout)]] 2 = Dynamically change field depending on value of parent =3 2 4 == Description == 3 = Dynamically change field depending on value of parent 4 5 == Description 5 6 6 7 Dynamically change fields options by their parent fields. 7 8 8 == Bugs/Feature Requests ==9 == Bugs/Feature Requests 9 10 10 11 Existing bugs and feature requests for TracTicketChainedFieldsPlugin are … … 14 15 [http://trac-hacks.org/newticket?component=TracTicketChainedFieldsPlugin&owner=richard new ticket]. 15 16 16 == Download == 17 [[TicketQuery(component=TracTicketChainedFieldsPlugin&group=type,format=progress)]] 18 19 == Download 17 20 18 21 Download the zipped source from [download:tracticketchainedfieldsplugin here]. 19 22 20 == Source ==23 == Source 21 24 22 25 You can check out TracTicketChainedFieldsPlugin from [http://trac-hacks.org/svn/tracticketchainedfieldsplugin here] using Subversion, or [source:tracticketchainedfieldsplugin browse the source] with Trac. 23 26 24 == Install ==27 == Installation 25 28 26 29 You can install this software as you would for any [TracPlugins TracPlugin]. … … 28 31 [http://pypi.python.org/pypi/simplejson simplejson] is a requirement for Python < 2.6, and it should be installed automatically if required when running `easy_install`. 29 32 30 1. Uninstall TracTicketTemplate if you have installed before. 31 32 2. Change to the directory containning setup.py. 33 34 3. If you want to install this plugin globally, that will install this plugin to the python path: 35 * python setup.py install 36 37 4. If you want to install this plugin to trac instance only: 33 1. Uninstall TracTicketTemplate if you have it installed before. 34 1. Change to the directory containing setup.py. 35 1. If you want to install this plugin globally, this will install this plugin to the python path: 36 {{{#!sh 37 python setup.py install 38 }}} 39 1. If you want to install this plugin to the Trac instance only: 38 40 * python setup.py bdist_egg 39 41 * copy the generated egg file to the trac instance's plugin directory 40 42 {{{#!sh 41 43 cp dist/*.egg /srv/trac/env/plugins 42 44 }}} 43 44 5. Config trac.ini: 45 {{{#!ini 45 1. Add the follwing line to the components section of the `trac.ini` file: 46 {{{#!ini 46 47 [components] 47 48 tcf.* = enabled … … 51 52 chained_fields = tcf_brand, tcf_phone, tcf_os 52 53 }}} 53 or 54 54 or: 55 {{{#!ini 55 56 chained_fields = component, tcf_brand, tcf_phone, tcf_os 56 57 }}} … … 61 62 == Example 62 63 63 For example, there are 3 fields: brand, phone, OS. When brand changes, phone field will change it's options to show only phone belongs to that brand. When phone changes, OS field will change too.64 For example, there are 3 fields: brand, phone, OS. When the phone brand changes, the phone field will change its options to show only phone belongs to that brand. When the phone changes, the OS field will change accordingly. 64 65 1. Add 3 custom fields in trac.ini 65 66 {{{#!ini … … 118 119 }}} 119 120 120 Please note:121 * '''If no options for some fields, like "SE" above, you still need supply the full structure, with empty string as keys.'''122 * '''It supports any fields after [7793].'''121 '''Notes''': 122 * If no options for some fields, like "SE" above, you still need supply the full structure, with empty string as keys. 123 * It supports any fields after [7793]. 123 124 124 === Snapshot === 125 === Screenshot 126 125 127 [[Image(TracTicketChainedFieldsPlugin.png)]] 126 128 127 == Recent Changes ==129 == Recent Changes 128 130 129 131 [[ChangeLog(tracticketchainedfieldsplugin, 3)]] 130 132 131 == Author/Contributors ==133 == Author/Contributors 132 134 133 135 '''Author:''' [wiki:richard] [[BR]]