Skip to main content

Standard Fields

Standard Fields are a documented set of common field names. Templates are encouraged to reuse them, with the type listed here, so that Template Configurations stay portable across Templates. They are a convention, not a requirement: a Template may declare any fields it likes.

outprint validate warns when a Template declares a Standard Field name with a different type. The warning never fails validation.

The machine-readable table is internal/packages/standard_fields.yaml; a test keeps it and this page in step.

Any Document Type​

FieldType
titlestring
datedate
languagestring
authorstring

Configuration fields​

These are normally supplied by a Template Configuration (as Fixed Values or Defaults) and therefore declared by every Template that uses them.

FieldTypeMeaning
namestringOrganisation or sender name
logoassetLogo file inside the Configuration
accent_colorcolorAccent colour
fontstringOptional font override

Letter​

Applies to fields of a Document Type named letter.

FieldType
recipientlist or text
senderstring, text or list
subjectstring
openingstring
closingstring
referencestring
enclosureslist
cclist

Report​

Applies to fields of a Document Type named report.

FieldType
subtitlestring
versionstring
abstracttext
tocbool