Site content (types)
The idea
Section titled “The idea”The Site module is headless. A new site is empty: types, taxonomies and fields are created per site. There are no built-in “posts” and “pages” as in WordPress.
Public delivery: /api/site/v1, with the site key on your server.
Example types
Section titled “Example types”| Idea | Type key | Fields (examples) | Taxonomies |
|---|---|---|---|
| Blog | post |
title, body, cover, seo | category, tag |
| Page | page |
title, body, blocks | - |
| Room | room |
title, beds, price_from, gallery | room_type |
| Team | team_member |
name, role, photo, bio | department |
| Portfolio | project |
title, client, gallery, year | industry |
Flow for the AI
Section titled “Flow for the AI”- Read the site’s types:
GET /api/site/v1/types. - If a type or field is missing, propose the key, label, fields and taxonomies.
- The person creates it in the ERP under Site (or approves the proposal).
- Only then generate the pages on the real types.
- Site forms go to Rivil submissions, not to an invented inbox.
- Images come from the Gallery, not from arbitrary URLs.
Publishing
Section titled “Publishing”Entries have publishing states. Only live ones appear on the site. Autosave is not publishing. A future publish date means the entry is scheduled.
Keeping the site fresh
Section titled “Keeping the site fresh”Subscribe a webhook to content.* and purge your cache when it arrives.
For AI assistants
Do not hardcode a type that does not exist on the site. List the types first, then propose what is missing.