Changes between Version 3 and Version 4 of 1.3/TracTicketsCustomFields
- Timestamp:
- Apr 12, 2017, 6:32:15 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
1.3/TracTicketsCustomFields
v3 v4 4 4 == Configuration 5 5 6 Configuring custom ticket fields i s done in the [wiki:TracIni trac.ini] file. All field definitions should be under a section named `[ticket-custom]`.6 Configuring custom ticket fields in the [TracIni#ticket-custom-section "[ticket-custom]"] section of trac.ini. 7 7 8 8 The syntax of each field definition is: … … 20 20 * label: Descriptive label. 21 21 * value: Default value. 22 * order: Sort order placement ; this determines relative placement in forms with respectto other custom fields.22 * order: Sort order placement relative to other custom fields. 23 23 * max_size: Maximum allowed size in characters (//Since 1.3.2//). 24 24 * format: One of: 25 25 * `plain` for plain text 26 * `wiki` to interpret the content as WikiFormatting26 * `wiki` for [WikiFormatting wiki formatted] content 27 27 * `reference` to treat the content as a queryable value 28 28 * `list` to interpret the content as a list of queryable values, separated by whitespace … … 85 85 test_five = radio 86 86 test_five.label = Radio buttons are fun 87 test_five.options = uno|dos|tres|cuatro|cinco87 test_five.options = |uno|dos|tres|cuatro|cinco 88 88 test_five.value = dos 89 89 … … 110 110 }}} 111 111 112 '''Note''': To make a `select` type field optional, specify a leading `|` in the `fieldname.options` option.112 '''Note''': To make a `select` type field optional, specify a leading `|` in `fieldname.options` (e.g. `test_five`). 113 113 114 114 === Reports Involving Custom Fields … … 144 144 Note in particular the `LEFT OUTER JOIN` statement here. 145 145 146 Note that if your config file uses an '''uppercase''' name:146 Note that option names in trac.ini are case-insensitive, so even if your option name includes uppercase characters: 147 147 {{{#!ini 148 148 [ticket-custom] 149 150 149 Progress_Type = text 151 150 }}} 152 you woulduse '''lowercase''' in the SQL: `AND c.name = 'progress_type'`.151 you must use '''lowercase''' in the SQL: `AND c.name = 'progress_type'`. 153 152 154 153 === Updating the database