Creating a Content Type
- Navigate to Content Types in your project
- Click Create Content Type
- Enter a name (e.g., "Blog Post")
- The API ID is auto-generated (e.g.,
blogPost) - Add an optional description
- Click Create
Adding Fields
Each content type needs fields to store data:
- Click Add Field on your content type
- Select a field type (see below)
- Configure the field settings
- Click Save
Field Types
| Type | Description | Example Use |
|---|---|---|
| Text | Short text, single line | Title, name |
| Rich Text | Formatted text with HTML/Markdown | Article body, bio |
| Number | Integer or decimal | Price, quantity |
| Boolean | True/false toggle | Featured, active |
| Date | Date only (no time) | Birth date, event date |
| DateTime | Date with time | Publish date, timestamp |
| Validated email address | Author email | |
| URL | Validated web address | External link |
| Slug | URL-friendly identifier | Page URL path |
| Select | Single choice from options | Category, status |
| Multi-Select | Multiple choices | Tags, features |
| Media | File upload reference | Hero image, documents |
| Reference | Link to another entry | Author, related posts |
| JSON | Flexible JSON data | Custom metadata |
Field Settings
Each field can be configured with:
- Required: Must have a value
- Unique: No duplicate values allowed
- Localized: Different values per language (when enabled)
- Validation: Min/max length, patterns, ranges
Content Type Options
When creating a content type, you can choose:
- Collection: Multiple entries (e.g., blog posts, products)
- Single: Only one entry allowed (e.g., homepage, site settings)
Example: Blog Post Content Type
Text
Blog Post (Collection)
├── title (Text, required)
├── slug (Slug, required, unique)
├── content (Rich Text, required)
├── excerpt (Text, max 200 chars)
├── featuredImage (Media)
├── author (Reference → Author)
├── publishedAt (DateTime)
├── tags (Multi-Select)
└── featured (Boolean)Example: Site Settings (Singleton)
Text
Site Settings (Single)
├── siteName (Text, required)
├── tagline (Text)
├── logo (Media)
├── socialLinks (JSON)
└── maintenanceMode (Boolean)Editing Content Types
- Navigate to Content Types
- Click on the content type you want to edit
- Add, remove, or modify fields as needed
- Click Save
Note: Some changes (like removing fields) may affect existing content entries.
Deleting Content Types
Warning: This will delete all entries of this type.
- Navigate to Content Types
- Click the menu icon (⋮) on the content type
- Select Delete
- Confirm the deletion