All posts

How to build your own collection

Three files, one Prisma field, and you have your own CRUDable content type.

Want to add a products or cars collection? Here is the recipe:

  1. Create a file under src/server/cms/schema/collections/ that exports defineCollection({ ... }).
  2. Add it to the COLLECTIONS array in registry.ts.
  3. Build a public list view under /[locale]/products and a detail view under /[locale]/products/[slug].

That is it. The admin sidebar, editor, media handling and locale fallback all light up automatically — the data layer already supports it.