Changes between Version 18 and Version 19 of TracTicketChainedFieldsPlugin
- Timestamp:
- Mar 15, 2014, 9:19:07 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracTicketChainedFieldsPlugin
v18 v19 24 24 == Install == 25 25 26 You can install this software as normal Trac plugin. 26 You can install this software as you would for any [TracPlugins TracPlugin]. 27 28 [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`. 27 29 28 30 1. Uninstall TracTicketTemplate if you have installed before. … … 41 43 42 44 5. Config trac.ini: 43 45 {{{#!ini 44 46 [components] 45 47 tcf.* = enabled … … 48 50 hide_empty_fields = false 49 51 chained_fields = tcf_brand, tcf_phone, tcf_os 52 }}} 53 or 54 {{{#!ini 55 chained_fields = component, tcf_brand, tcf_phone, tcf_os 56 }}} 57 for non-tcf_ starting fields. 50 58 51 or 52 chained_fields = component, tcf_brand, tcf_phone, tcf_os 53 for none tcf_ starting fields. 54 }}} 59 `hide_empty_fields` is the option which enable "hide fields when there are no supplied options", default is false. See #5638 for more details. 55 60 56 "hide_empty_fields" is the option which enable "hide fields when there are no supplied options", default is false. See #5638 for more details. 57 58 = Prerequisite = 59 * [http://pypi.python.org/pypi/simplejson simplejson] 60 61 == Example == 61 == Example 62 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.