Skip to content
Reference

Field types

Every field type on this site, with its options, generated from the running CMS.

On this page

These are the kinds of field you can give a collection or a global set. Each takes the common options plus its own, listed below. Plugins add field types, so this list shows exactly what is installed: the blocks and media types come from their plugins.

Text · text

A single line of plain text.

OptionTypeNotes
placeholdertextPlaceholder
maxnumberMax Length

Textarea · textarea

Multiple lines of plain text.

OptionTypeNotes
placeholdertextPlaceholder
rowsnumberRows
maxnumberMax Length

Rich text · richtext

Formatted text with headings, lists and links (sanitized HTML).

OptionTypeNotes
inlinetoggleInline Only — No paragraphs, headings or lists.

Markdown · markdown

Long-form text written in Markdown.

Number · number

A whole or decimal number with optional limits.

OptionTypeNotes
minnumberMinimum
maxnumberMaximum
decimalstoggleAllow Decimals

Toggle · toggle

An on/off switch stored as true or false.

Select · select

Pick one or more predefined options.

OptionTypeNotes
optionsjsonOptions — Map of value → label.
multipletoggleAllow Multiple
displayselectDisplay

Date · date

A calendar date, optionally with a time.

OptionTypeNotes
timetoggleInclude Time

Slug · slug

A URL-safe identifier; typed text is converted to lowercase-with-dashes.

OptionTypeNotes
placeholdertextPlaceholder
maxnumberMax Length

Link · url

A web address or a relative link.

OptionTypeNotes
placeholdertextPlaceholder
maxnumberMax Length

Email · email

An email address, checked for a valid format.

OptionTypeNotes
placeholdertextPlaceholder
maxnumberMax Length

Color · color

A color: a design token, hex value or CSS color function.

Entries · entries

Link to other entries.

OptionTypeNotes
collectionsselectCollections
maxnumberMaximum

Users · users

Link to one or more users.

Tags · tags

Free-form labels, separated by Enter or a comma.

Code · code

Source code or embed snippets in a monospaced editor.

OptionTypeNotes
languageselectLanguage

JSON · json

Structured data edited as JSON.

Group · group

A fixed set of nested fields stored together.

OptionTypeNotes
fieldsfieldsFields

Repeater · repeater

A list of items that share the same nested fields.

OptionTypeNotes
fieldsfieldsFields
maxnumberMaximum Items

Icon · icon

Pick an icon.

Blocks · blocks

Rich page content built from blocks — text, media, layout and more.

OptionTypeNotes
allowedtagsAllowed Blocks — Leave empty to allow every block.

Properties · properties

A list of field definitions (like a collection’s fields), e.g. the properties of a component.

Media · media

Images, documents or videos from the media library.

OptionTypeNotes
maxnumberMaximum Files
acceptselectAllowed