Changes between Version 3 and Version 4 of TracTicketChainedFieldsPlugin


Ignore:
Timestamp:
Aug 7, 2009, 6:19:27 AM (5 years ago)
Author:
richard
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracTicketChainedFieldsPlugin

    v3 v4  
    44
    55Dynamicly change fields options by their parent fields.
    6 
    7 
    8 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.
    96
    107== Bugs/Feature Requests ==
     
    5047== Example ==
    5148
     49For 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.
     50 1. Add 3 custom field in trac.ini
     51{{{
     52[ticket-custom]
     53tcf_brand = text
     54tcf_brand.label = Brand
     55tcf_brand.order = 3
     56tcf_phone = text
     57tcf_phone.label = Phone
     58tcf_phone.order = 4
     59tcf_os = text
     60tcf_os.label = OS
     61tcf_os.order = 5
     62}}}
     63 2. Go to Admin -> Chained Fields, edit the config
     64{{{
     65{
     66    "tcf_brand": {
     67        "Nokia": {
     68            "tcf_phone":{
     69                "5800": {
     70                    "tcf_os":{
     71                        "Symbian": {},
     72                        "Android": {}
     73                    }
     74                }
     75            }
     76        },
     77        "Apple": {
     78            "tcf_phone":{
     79                "iPhone": {
     80                    "tcf_os":{
     81                        "OS X": {},
     82                        "OS": {}
     83                    }
     84                },
     85                "iPhone 3G": {
     86                    "tcf_os":{
     87                        "OS X": {},
     88                        "other": {}
     89                    }
     90                }
     91            }
     92        }
     93    }
     94}
     95}}}
     96
    5297=== Snapshot ===
    5398[[Image(TracTicketChainedFieldsPlugin.png)]]