Skip to content

objecttype

Custom field type

All field types

One or more CMS object type names.

Written as
"Type": "objecttype"
Valid on
Template fields, Datastore schema, and custom site settings
Stores
{{ objecttype }} — the Liquid object a template reads from this field.
Validators
same, not, minitems, maxitems, eq, different
Default value
A CMS object type name, or an array of them.

Properties

Accepted in addition to the shared properties every definition carries.

Property Required Description
Options The offered type names, semicolon-delimited.
AllowMultiple Lets the editor choose more than one.
AllowAllDatastoreTypes Offers every datastore type rather than a fixed list.