What a CMS collection is, how to create one, and reusable patterns for common content types
A collection is a group of entries that share the same shape — for example, “Blog Posts,” “Products,” or “Team Members.” Each collection has a single schema (its fields) and lives in a single directory on disk. Most sites need three to ten collections; some need only one.This page covers what a collection is, the three ways to create one, naming and format conventions, references between collections, and ready-to-use patterns for common content types.
There are three paths. Pick whichever matches your comfort level.
Ask the AI
CMS Panel
Manual edit
The fastest way. In the AI chat:
Add a "case-studies" collection. Each entry should have a title,client name, problem, solution, hero image, and a long-form body.Route them at /case-studies/{slug}.
The AI will:
Read your existing manifest
Propose the collection schema (fields, format, route)
Confirm with you
Save the manifest update
Optionally create a seed entry so the collection isn’t empty
Open /v3, switch the right pane to CMS, and click the gear icon to open the Collection Manager. Click + New Collection and define the fields one at a time. The Collection Manager validates as you type and shows the resulting manifest preview on the right.
Open hiveku.cms.json in the code editor and add a new entry to the collections array. Follow the manifest schema. Save — the CMS panel reloads and validates.
Pick mdx when entries have a substantial long-form body and you want Markdown features (headings, embeds, components) in that body. Pick json for purely structured data.
Use MDX for…
Use JSON for…
Blog posts
Testimonials
Case studies
FAQs
Documentation pages
Products
Long-form essays
Team members
Tutorials
Pricing tiers
Newsletters
Site settings
MDX collections require exactly one field with isBody: true. JSON collections must not have any. The Collection Manager catches this for you; if you hand-edit the manifest, the validator will too.
You can mix formats in one project — most real sites have one or two MDX collections (blog, docs) and several JSON collections (products, testimonials, FAQs).
In the CMS panel, this renders as a searchable picker. On disk, the value is the referenced entry’s slug. See Linking Collections with References for examples of rendering referenced data on the page.
Set "singleton": true on a collection to enforce a single entry — useful for site settings, the homepage hero, or a single about page. The CMS panel skips the entry list and goes straight to the form.