A purpose-built editor for every value
A property has two halves: the field decides how the admin edits it, the type decides how it is stored. Choose the field and everything else follows.
Every schema property carries a field and a type: the field decides how the admin edits the value, the type how it is stored. Pick the field first. When a property omits type, Total CMS fills it in from the field on save, so one well-chosen setting gives you the right editor, storage shape, validation and matching Twig filters.
Match the field to the value
Use text only when nothing more specific fits:
- Dates. A date in a text field cannot be filtered by “this month”. Use
dateordatetime. - Numbers. A number in a text field sorts as a string. Use
number,priceorrange. - Yes or no. In a text field it is a typo waiting to happen. Use
toggleorcheckbox. - Everything else.
styledtextfor article bodies,emailandurlvalidated on entry,secretfor tokens,colorstored as hex and OKLCH,image,gallery,fileandvideofor media, andcardanddeckfor structure.
Fixed choices or a growing list
This is where content models are won or lost:
select. Right when the choices are fixed.listwithpropertyOptions. Right when editors will keep adding to them: it offers every value already used in the collection as a suggestion while still allowing new ones, so a tag vocabulary grows with the content. That is how the built-in blog schema's categories and tags work.
Settings that work on any field
autogen. Composes a value from other properties and built-in variables (${title},uuid,currentyear) and slugifies the result on an id field.calc. Turns a number or price field into a read-only computed value, with arithmetic, rounding, and aggregates likesum(${items.lineTotal})across a deck's items.visibility. Shows or disables a field based on another field's value, andrequiredmakes that conditional: a notification email can appear and become mandatory only when the toggle above it is on.
Not sure which field to reach for? Copy from the source: Total CMS ships a reserved schema named totalcms that demonstrates every built-in field type with its settings in one valid file. Read it in the schema editor, over MCP, or with tcms schema:get totalcms --json.
In practice
What it looks like on the command line
# Read the reference schema that demonstrates every field type
vendor/bin/tcms schema:get totalcms --json
# Check your own schema before calling it done
vendor/bin/tcms schema:lint article --strict
The reference schema is the fastest way to find the right field, and lint is the fastest way to find the fields you left undocumented.
At a glance
What you get
- Match the field to the value
- A date field filters by date, a number field sorts numerically, an email field validates. Text is the last resort, not the default.
- Vocabularies that grow
- A list field with propertyOptions suggests every value already used in the collection while still accepting new ones — tags without schema edits.
- Fields that compute themselves
- calc makes a number or price read-only and derived, with round, min, max and aggregates such as sum(${items.lineTotal}) across a deck.
- Show fields when they matter
- visibility watches another field and hides or disables this one. Pair it with required and the rule only applies when the field is actually on screen.
- A reference schema to copy
- The reserved totalcms schema demonstrates every field type and setting in one valid file. Find the property that matches your value and adapt it.
36+ admin field types
Common questions
Which field should I use for categories?
It depends what you mean. Editors adding their own, several per object: a list field with propertyOptions. A fixed dropdown, one per object: a select with static options. Several fixed choices: a checklist.
Can a field be required only sometimes?
Yes. Combine the field's required setting with visibility, and leave the property out of the schema's top-level required array — otherwise the server-side rule rejects the save regardless of the toggle.
Are the localized fields available on every edition?
No. localizedtext, localizedtextarea and localizedstyledtext are used inside custom schemas, which are a Pro feature, so Standard cannot create or edit them.
Can I add a field type of my own?
Yes. Extensions can register custom field types alongside the built-in ones, and they appear in the schema editor like any other.
Try it on a site of your own.
45 days, every Pro feature, no credit card. Build it, hand it to a client, and see what they can and can’t touch.