Creating Page Types
Define custom page structures with fields.
Updated
On this page
Overview
Page Types let you define custom content structures. They work like custom post types — define fields once, then create multiple items of that type.
Creating a Page Type
- Go to Content → Content Types in the dashboard
- Click Create Content Type
- Name it (e.g., "Team Members", "FAQ", "Testimonials")
- Define custom fields (text, image, rich text, etc.)
- Save
SDK Usage
import dash from "@/lib/dash"
// List all content types
const { content_types } = await dash.contentTypes.list()
// List items of a type
const { items, total } = await dash.contentTypes.listItems("team-members", {
limit: 20,
})
// Get a single item
const { item } = await dash.contentTypes.getItem("team-members", "john-doe")
Next Steps
- Page Items — Creating content items
- Rendering Pages — Displaying content on the storefront