Changes between Version 1 and Version 2 of TracTicketsCustomFields


Ignore:
Timestamp:
Jun 23, 2015, 6:04:32 PM (9 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracTicketsCustomFields

    v1 v2  
    1818   * value: Default value.
    1919   * order: Sort order placement. (Determines relative placement in forms with respect to other custom fields.)
     20   * format: One of:
     21     * `plain` for plain text
     22     * `wiki` to interpret the content as WikiFormatting (''since 0.11.3'')
     23     * `reference` to treat the content as a queryable value (''since 1.0'')
     24     * `list` to interpret the content as a list of queryable values, separated by whitespace (''since 1.0'')
    2025 * '''checkbox''': A boolean value check box.
    2126   * label: Descriptive label.
     
    3540   * label: Descriptive label.
    3641   * value: Default text.
    37    * cols: Width in columns.
     42   * cols: Width in columns
    3843   * rows: Height in lines.
    3944   * order: Sort order placement.
     45   * format: Either `plain` for plain text or `wiki` to interpret the content as WikiFormatting. (''since 0.11.3'')
     46
     47Macros will be expanded when rendering `textarea` fields with format `wiki`, but not when rendering `text` fields with format `wiki`.
    4048
    4149=== Sample Config ===
     
    4856test_two = text
    4957test_two.label = Another text-box
    50 test_two.value = Just a default value
     58test_two.value = Default [mailto:joe@nospam.com owner]
     59test_two.format = wiki
    5160
    5261test_three = checkbox
     
    7988{{{
    8089#!sql
     90SELECT p.value AS __color__,
    8191   id AS ticket, summary, owner, c.value AS progress
    8292  FROM ticket t, enum p, ticket_custom c
     
    90100{{{
    91101#!sql
     102SELECT p.value AS __color__,
    92103   id AS ticket, summary, component, version, milestone, severity,
    93104   (CASE status WHEN 'assigned' THEN owner||' *' ELSE owner END) AS owner,
     
    104115
    105116Note in particular the `LEFT OUTER JOIN` statement here.
     117
     118Note that if your config file uses an uppercase name, e.g.,
     119{{{
     120[ticket-custom]
     121
     122Progress_Type = text
     123}}}
     124you would use lowercase in the SQL:  `AND c.name = 'progress_type'`
    106125
    107126=== Updating the database ===