Skip to content

Site content (types)

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.

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
  1. Read the site’s types: GET /api/site/v1/types.
  2. If a type or field is missing, propose the key, label, fields and taxonomies.
  3. The person creates it in the ERP under Site (or approves the proposal).
  4. Only then generate the pages on the real types.
  5. Site forms go to Rivil submissions, not to an invented inbox.
  6. Images come from the Gallery, not from arbitrary URLs.

Entries have publishing states. Only live ones appear on the site. Autosave is not publishing. A future publish date means the entry is scheduled.

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.