Field types
A collection (pages, posts, a module's products…) is a list of fields, and every field has a kind: text, number, image, a list of repeating items, and so on. The kind decides what the editor sees in the admin, which values are accepted and what the website receives. SHADE has 18 kinds. The same fields also make up the forms for module settings. For collections in general see Collections and entries; for text in several languages see Languages.
What users can do
- Editors fill in fields in the entry form of a collection. Every kind has its own input: text boxes, a number input, a switch, date pickers, a rich text editor, a link picker, a media picker, a picker for entries of another collection and repeating items; a json field is built in its module's own screen (a website page's content in the website editor).
- Editors see the validation message next to the field it belongs to, and a hint when a field is not translated yet.
- Editors working in another language can only change fields that are stored per language; the others are locked with the help text "The same in every language. Change it in {language}."
- Developers choose the fields of a collection or module setting in code. There is no screen to add or change fields.
Who may do it
Fields have no permissions of their own: whoever may edit an entry may edit all its fields.
| Action | Permission | Roles |
|---|---|---|
| Fill in fields of an entry | collections.<slug>.create / .update | admin; editor unless the collection's access says otherwise |
| Publish (runs the strict checks below) | collections.<slug>.publish | admin; editor unless restricted |
| Fill in fields through AI (MCP) | the collection must be opened to AI assistants | ai: drafts only, never publishes |
| Define fields | none: done in code | developers |
Field kinds at a glance
"Translatable" is the default (see Common options): yes, no (a developer may switch it on), or never. Groups and repeaters are structure: their members decide.
| Kind | Editor | Translatable | Site receives |
|---|---|---|---|
| text | single-line input | yes | text |
| textarea | multi-line input | yes | text |
| email input | no | an address or nothing | |
| emails | tags, one address each | never | list of addresses |
| url | URL input | no | an address or nothing |
| slug | input with a leading / | yes | text |
| number | number input | never | a number or nothing |
| money | amount input in euros | never | an amount or nothing |
| toggle | switch | never | yes or no |
| date | date or date-time input | never | a date or nothing |
| select | dropdown | never | the chosen option or nothing |
| richtext | rich text editor | yes | formatted text or nothing |
| link | link picker (a page or item on the site, or a URL) | no | a link or nothing |
| image | media picker (images) | never | the image with its sizes and alt text |
| file | media picker (documents) | never | the file |
| relation | entry picker | never | the linked entries |
| group | card with nested fields | members | its fields together |
| repeater | list of collapsible items | members | the list of items |
| json | how much it holds and which module checks it; built in that module's screen (a page's content in the website editor) | never (a page's texts hold their languages) | the value its module's check gave |
Common options
Every field has these:
- A name and a label (the label is shown in Dutch on a Dutch admin).
- Help: text under the input.
- Required: marked with an asterisk; enforced when publishing, not in drafts (see Rules and limits).
- Show if: the field is hidden unless another field next to it has a given value, or one of several values. Entry forms, groups and repeater items all apply it. The forms module uses it: Choices shows only for a Choice from a list or a Choice of buttons. A hidden field keeps its value.
- Default value: the value a new entry or repeater item starts with; also filled in when the value is missing on save. A default that is not a valid value for the field is refused.
- Unique (collections only): no two entries may have the same value; a duplicate is refused with a message naming the field. Only for kinds that hold one simple value (text, textarea, email, url, slug, number, toggle, date, select). A translated unique field (a slug) is unique per language.
- Translatable: the value is kept per language. Defaults to the kind's choice (table above).
Each kind
Shared rules: in a draft every field may be empty (formats are still checked); when publishing, required fields must be filled in. "Empty" means nothing filled in, an empty list or, for text kinds, only spaces.
text
- Editor: single-line input, with a placeholder and a maximum length when set.
- Validation: spaces around the text are trimmed; at most the maximum length; required means at least 1 character.
- Can be filtered on in lists. May be a collection's title field or the source of its slug.
textarea
- Editor: a multi-line input that grows with its text (3 rows by default), with a placeholder and a maximum length when set.
- Validation: as text.
- One value per line (a choice list): in another language it is translated line by line, as many lines as the default language, in the same order; another number of lines is refused.
- Editor: an email input; clearing it leaves it empty.
- Validation: a valid email address, at most 254 characters.
emails
- Editor: one tag per address: type one and press Enter, or paste several at once (commas, spaces and semicolons split them); its cross removes one.
- Validation: each a valid email address, trimmed and lowercased, the same address kept once; at most the maximum (default 20, at most 100). Required: at least one when publishing.
- Used for who hears of something: the shop's and the appointments' notification addresses.
url
- Editor: a URL input; clearing it leaves it empty.
- Validation: an address starting with
http://orhttps://; where the developer allows it, also a path on the site starting with/.
slug
- Editor: input with a
/in front. A slug can follow another field, usually the title (made fit for an address), until the editor changes the slug by hand. In a list item the slug follows its sibling field in the same item. Once the entry is published, a slug that has a value keeps it, and no longer follows the field. - Validation: lowercase letters, digits and dashes, parts separated by
/, at most 200 characters, no leading/. A required slug must not be empty when publishing, except the pages' slug: the home page has the empty slug.
number
- Editor: a number input with the minimum, maximum and step when set.
- Validation: a whole number, or a number with at most the allowed decimals; within the minimum and maximum, and within what the database keeps: a whole number between about −2.1 and 2.1 billion, a number with decimals below 10 to the power (15 − decimals). Amounts of money are a money field.
money
- Editor: an amount in euros, with the admin language's decimal sign ("12,50" in Dutch, "12.50" in English), rounded to the cent. Lists show it as "€ 12,50".
- Validation: within the minimum and maximum, and at most about 21 million euros either way. Kept as a whole
number of cents (
1250), which is also what the API reads and writes. Euros only.
toggle
- Editor: a switch.
- Validation: on or off, never empty; when missing, its default or off.
date
- Editor: a date input, or a date-time input in the browser's local time.
- Validation: a valid date, or a date and time.
select
- Editor: a dropdown of the option labels, with a clear button when the field is not required.
- Validation: one of the options. Old versions keep options that were later removed readable. Lists show the option's label.
richtext
- Editor: a rich text editor whose toolbar offers what the developer chose from: bold, italic, underline, link, headings (levels 2, 3 and 4, as the site renders), bullet list, numbered list, quote, code. Default: bold, italic, link and both lists.
- Validation: a required rich text must hold some text when publishing (empty paragraphs count as empty).
- Cannot be filtered on or be unique.
link
- Editor: a button that opens a popover with the tabs "On the site" and "URL" (only those the field allows). On the site: the kind of page ("Pages", or a collection with item pages such as "Posts"), a search ("Search…") and an optional anchor. Then a URL box, "Open in a new tab", "Apply" and a "Clear link" button.
- Validation: a link to a page or item, or a URL starting with
http://,https://,/,#,mailto:ortel:, at most 2000 characters. The linked entry must exist and have an address on the site (pages; collections with item pages): "Entries of "forms" have no address to link to" otherwise. - Links keep working when the linked page's slug changes; a linked entry cannot be deleted (the message names who links to it).
image
- Editor: a thumbnail, "Choose image" / "Change" opening the media library, "Remove image" (with Undo in the message; the image stays in the library), the filename, and the badges "No alt text" or "Image no longer exists". The thumbnail is framed in the field's aspect ratio: a hint of how the site shows it, not a crop; an image is cropped in the media library, and the site crops around the focal point.
- Validation: the media item must exist and be an image (This file is not an image). Publishing also requires the image to have alt text.
- A media item in use cannot be deleted.
file
- Editor: the chosen file's name as a link, "Choose file" / "Change file" opening the media library on documents (PDF), or on images when the field accepts only images, and "Remove the file" when the field is not required.
- Validation: as image, without the alt-text rule; when the field limits the file types, the file must be one of them (This type of file is not allowed here).
relation
- Editor: a searchable picker of entries of another collection, labelled by their title; drafts are marked "(draft)", deleted entries "Missing entry". Where several may be chosen, their order is kept.
- Validation: every chosen entry must exist, each at most once, at most 1000. The other collection cannot be a singleton.
- A single relation can be filtered on.
group
- Editor: a card with its fields.
- Validation: its fields carry their own rules; a group itself cannot be required (nor can a toggle).
- Its fields can be filtered on.
repeater
- Editor: collapsible items titled by one of their fields (else "Item N"), move up/down, remove, and an add
button (default "Add item"). Add is disabled at the maximum ("Maximum of {max} reached."). A removed item goes at
once, with Undo in the message ("
- removed") to put it back where it was. Removing works below the minimum in a draft, with the hint "At least {min} needed before publishing." In another language the items are fixed: only their text changes.
- Validation: at most the maximum always; at least the minimum when publishing; required means at least one.
- Items keep their translations when they are moved.
In the admin

There is no screen for fields as such. Every form shows the label, help, required mark and the validation message of each field, in the same way in:
- the entry form of a collection and the page settings;
- module settings.
In collection lists each kind has a short cell text: the option label for selects, "Yes"/"No" for toggles, "Attached" for media, "Linked" / "{count} linked" for relations, "{count} items" for repeaters, the URL or "Link on the site" for links, "…" for rich text, groups and json fields, and "—" for empty values.
On the website
Only fields of public collections reach the site, only from published versions and only the fields chosen for the site. Images, files and links to pages and item pages arrive ready to use. Related entries are only included when they are published. In another language, translatable text falls back to the default language where it is missing.
Rich text is shown with a fixed set of formatting only: paragraphs, headings (h2–h4), lists, quotes, line breaks, bold, italic, underline, code and links with safe addresses.
Rules and limits
- Drafts vs publish. Saving a draft accepts incomplete content: required fields may be empty and a repeater's minimum is not checked, but formats, maximums, options and references are. Publishing checks the version strictly, including that every referenced media item, entry and page exists and that images have alt text. Collections without drafts check strictly on every save.
- Only known fields are kept: anything that is not one of the collection's fields is refused.
- Missing values take the default value, else stay empty (lists empty, toggles off). Saving only some fields leaves the others unchanged.
- References: media, pages and entries referred to must exist (the message names the field); they cannot be deleted while in use; old versions never block a delete.
- Fields are checked when SHADE starts: a mistake in a collection's fields stops it from starting.
- Languages: only translatable fields can differ per language; repeaters and json fields keep one structure across languages (a page's tree holds every language in its texts). See Languages.
For developers
The code and its tests: shade/fields/README.md in the shade repository.