![](/trunk5/en/kdoctools5-common/top-kde.jpg)
Tellico will include all the default fields for a collection if the first field element has the name _default. For Paragraph, Table, or Image fields, the field category should be identical to the field title.
The type of field is given in the type attribute of the field element. The value is equal to the FieldType enum value in src/field.h
.
Table 7.2. Field Type Values
Field Type | Value |
---|---|
Simple Text | 1 |
Paragraph | 2 |
Choice | 3 |
Checkbox | 4 |
Number | 6 |
URL | 7 |
Table | 8 |
Image | 10 |
Date | 12 |
Rating | 14 |
The field may have different flags set, given as a bitwise OR'd value in the flags attribute on the field element. The flag for preventing the user from deleting a field is intended for such things as the citation key for bibliographic entries.
Table 7.3. Field Flag Values
Field Flags | Value |
---|---|
Allow Multiple Values | 0x01 |
Allow Grouping | 0x02 |
Allow Completion | 0x04 |
Disallow Deleting | 0x08 |
Disallow Editing | 0x10 |
Derived Value | 0x20 |
The format of the field is given in the format attribute on the field element. Date Formatting is not currently used. Grouping by People uses all the fields which use Name Formatting. Setting the Derived Value flag implies the value for the field is generated from the template property from other field values.
Table 7.4. Field Format Values
Field Format | Value |
---|---|
Capitalization Only | 0 |
Title Formatting | 1 |
Name Formatting | 2 |
Date Formatting | 3 |
No Formatting | 4 |