Show navigationHide navigation
Field Types
Field formats are declared per field in cms/octocms.config.ts. The CMS editor renders a matching control; values are stored inside each entry's fields object.
For shared options (required, hint, validation), see Fields overview.
| Format | Description | Page |
|---|---|---|
| string | Single-line text; optional tag-style list (list: true) | Names, titles, tags |
| text | Multi-line textarea | Descriptions, summaries |
| markdown | Rich markdown editor (MDXEditor) | Blog posts, documentation |
| richtext | WYSIWYG editor with embeds and slash commands | Landing pages, newsletters |
| boolean | Yes / No radio buttons | Feature flags, toggles |
| select | Dropdown or checkbox list from fixed options | Categories, statuses |
| number | Numeric input (int or float) | Prices, sort order |
| datetime | Date or date-time picker | Publish dates, event times |
| image | Media library picker + upload | Cover photos, avatars |
| slug | Auto-generated URL-safe identifier | Page URLs, permalinks |
| url | URL input with validation | External links, social profiles |
| color | Native color picker with hex output | Brand colors, category badges |
| json | Raw JSON editor with validation | Structured metadata, configs |
| reference | Links to other entries (one or many) | Post → author, page → posts |
| conditional | Content variants with branch selection | A/B tests, feature flags |
Each field page includes configuration options, a real-world example with schema + query + rendering code, storage format, and query result shape.