Content Models
A Content Model defines the fields and structure of a page type or component type. Think of it as a schema — it describes what data a piece of content can hold.
Built-in models
Alokai CMS ships with content models pre-installed in every new space:
Page types:
Dynamic Page— General-purpose page withcomponentsAboveFoldandcomponentsBelowFoldzonesCategory Page— Category listing withcomponentsTopandcomponentsBottomzonesProduct Details Page— Product page with acomponentsBottomzone
Component types:
- Hero, Banner, Card, CategoryCard, Editorial, Gallery, Grid, Accordion, NewsletterBox, ProductList, Scrollable, and more
Creating a custom content model
- Go to Content Models in the sidebar
- Click New Content Model
- Give it a name and an API ID (e.g.
FeaturedCollection) - Add fields using the field editor
Field types
| Type | Description |
|---|---|
text | Single-line text |
textarea | Multi-line plain text |
richtext | Rich text with formatting (Tiptap editor) |
number | Numeric value |
boolean | True/false toggle |
select | Dropdown with predefined options |
color | Color picker (hex value) |
image | Image asset reference |
button | Link with label, URL, and variant |
components | Nested components (for container types) |
Duplicating models
Click the ⋯ menu on any model and select Duplicate to create a copy with a new name and API ID. Useful for creating variants of existing component types.
API ID
The api_id is the key used when placing a component on a page. It must be unique within the space and use PascalCase (e.g. FeaturedCollection).