Changes between Version 1 and Version 2 of TracTicketsCustomFields


Ignore:
Timestamp:
Jun 21, 2005, 1:13:36 AM (19 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracTicketsCustomFields

    v1 v2  
    1 = Custom Ticket Fields =
    2 Trac support adding custom, user-defined, fields to the ticket module. Using custom fields, you can add typed, site-specific, properties to tickets.
     1= カスタムチケット属性 =
     2Trac ではチケットにユーザ定義の属性を追加できます。カスタムチケット属性を使用すると、定型で、プロジェクト特有のプロパティをチケットに持たせることができます。
    33
    4 '''Note: In Trac 0.8, this feature is still experimental.'''
     4'''Note: Trac 0.8 では、この機能は、まだ実験段階です。'''
    55
    6 == Configuriation ==
    7 Configuring custom ticket fields is done in the TracIni config file.
     6== 設定方法 ==
     7カスタムチケット属性を設定するためには、 TracIni 設定ファイルを変更します。
    88
    9 All field definitions should be under a section named [ticket-custom] in the ini-file.
     9カスタムフィールドは、 trac.ini ファイルの [ticket-custom] セクションに書く必要があります。
    1010
    11 The syntax of each field definition is:
     11各属性の定義は以下のように記述します:
    1212{{{
    13  FIELD_NAME = TYPE
    14  (FIELD_NAME.OPTION = VALUE)
     13 属性名 = タイプ
     14 (属性名.オプション = 値)
    1515 ...
    1616}}}
    17 Looking at the example below should help explain the syntax.
     17構文の詳細は以下の例を見てください。
    1818
    19 === Available Field Types and Options ===
    20  * '''text''': A simple (one line) text field.
    21    * label: Descriptive label.
    22    * value: Default value.
    23    * order: Sort order placement. (Determines relative placement in forms.)
    24  * '''checkbox''': A boolean value check box.
    25    * label: Descriptive label.
    26    * value: Default value (0 or 1).
    27    * order: Sort order placement.
    28  * '''select''': Drop-down select box. Uses a list of values.
    29    * options: List of values, separated by '''|''' (vertical pipe).
    30    * value: Default value (Item #, starting at 0).
    31    * order: Sort order placement.
    32  * '''radio''': Radio buttons. Essentially the same as '''select'''.
    33    * label: Descriptive label.
    34    * options: List of values, separated by '''|''' (vertical pipe).
    35    * value: Default value (Item #, starting at 0).
    36    * order: Sort order placement.
    37  * '''textarea''': Multi-line text area.
    38    * label: Descriptive label.
    39    * value: Default text.
    40    * width: Width in columns.
    41    * height: Height in lines.
    42    * order: Sort order placement.
     19=== 属性のタイプとオプション ===
     20 * '''text''': シンプルな(1行の)テキスト。
     21   * label: 説明となるラベル
     22   * value: デフォルト値
     23   * order: ソート時の並び順 (フォーム内での相対的位置を決定します。)
     24 * '''checkbox''': ブーリアン値をもつチェックボックス。
     25   * label: 説明となるラベル。
     26   * value: デフォルト値 (0 または 1).
     27   * order: ソート時の並び順
     28 * '''select''': ドロップダウンするリストボックス。
     29   * options: リストに表示する値を '''|''' (vertical pipe) 区切りで記述。
     30   * value: デフォルト値 (0から始まるリスト内での番号) 。
     31   * order: ソート時の並び順
     32 * '''radio''': ラジオボタン。HTMLの '''select''' 要素と同じ。
     33   * label: 説明となるラベル。
     34   * options: リストに表示する値を '''|''' (vertical pipe) 区切りで記述。
     35   * value: デフォルト値 (0から始まるリスト内での番号) 。
     36   * order: ソート時の並び順
     37 * '''textarea''': 複数行のテキストエリア。
     38   * label: 説明となるラベル。
     39   * value: デフォルトで設定されるテキスト。
     40   * width: 入力領域のカラム幅。
     41   * height: 入力領域の行数。
     42   * order: ソート時の並び順
    4343
    44 === Sample Config ===
     44=== サンプル ===
    4545{{{
    4646[ticket-custom]
     
    7474
    7575----
    76 See also: TracTickets, TracIni
     76参考: TracTickets, TracIni