Types
Every record-field can declare a
type. It decides two things: how the field is compared by
filters, sorts and groups, so numbers behave as numbers rather than
text where "10" < "9"; and how its value is written into a template. Every
value is HTML-escaped on output, so a field can never inject markup, except html, which is
inserted raw. Each type is also a record in the reference search.
Field types
| Type | Compared as | Description |
|---|---|---|
text | string | Plain text, HTML-escaped on output; compared exactly and lexicographically. |
html | string | Inserted raw, not escaped, for values that are real HTML markup; compared as text. |
integer | number | Whole numbers; numeric comparison and equality. |
number | number | Numbers with decimals; numeric comparison. |
boolean | boolean | true / yes / 1 / on are true, anything else false. |
auto | number or string | Untyped, the default: numeric where the value looks numeric, otherwise text. |
A value is checked against its type when the automation runs: a value that does not fit, a non-numeric
integer say, is reported with its page and field, and the site is left unchanged until it is
fixed. Types are set per field on the record.