Naar inhoud gaan
Docs menuContent / Content types
On this page
  1. Field types
  2. Pages and globals
  3. Change a content type
  4. Over the API and MCP

Content types

A content type is the shape of a page, like "Blog post" or "Help article". You build it from fields.

Open Content, pick a project, and add a content type. Then add fields with Select a field.

Field types

GroupFields
Text, numbers and datesShort text · Long text · Rich text · Email address · Number · Date
ChoicesYes / No · Dropdown · Choose one
Links and filesLink to another page · File or image
StructureRepeating list · Page sections · Group of fields · Tabs
For developersCustom data (JSON)

Rich text holds headings, lists, links and images. Page sections build a page from different kinds of sections. Link to another page points to a page of another content type.

Pages and globals

A content type with many pages (posts, articles) is delivered to your site. Single site-wide documents (globals) can be edited, but the SDK does not deliver them yet.

Owners and admins change content types. Everyone in the workspace writes pages.

Change a content type

Lefine checks every field change before it saves. Each change is one of three classes:

ClassWhat it does to pagesChanges
Safenothinga new optional field · a new label · a new order · Short text ↔ Long text · Email address → text
Breakingpages keep their content, but some must be fixed before they can be published, or a site that reads them must changea field becomes required or unique · one value becomes a list · options taken away · stricter limits (longer minimum, shorter maximum, fewer rows) · a new required field with no default
Destructivesome of what pages hold is no longer delivereda field removed · a type change that cannot keep the value · a list becomes one value (pages keep only the first) · translation turned off · a link points to another content type · page section kinds removed

Safe changes save at once. A breaking or destructive change opens a dialog first: This change affects pages or This change removes content from pages. It lists each risky change with its class and the pages it touches ("3 of 40 pages: …"). Press Save anyway or Keep editing. Saved page versions keep what a destructive change removes.

Field API names cannot change. Removing a field and adding one of the same type is a removal, not a rename. To rename what people see, change the label.

Over the API and MCP

  • content.collections.previewChange ("Check a content type change") returns the same plan: the class, each change with its pages, and a digest. It saves nothing.
  • A breaking or destructive update is refused unless it sends confirmChanges with the digest of that plan. If the content type or its pages change in between, check again.
  • An AI app's change waits for a person: the approval card lists breaking and destructive changes first, never cut, with the pages they touch.
Next step · ContentPages and languages
Was this page helpful?