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.

FormatDescriptionPage
stringSingle-line text; optional tag-style list (list: true)Names, titles, tags
textMulti-line textareaDescriptions, summaries
markdownRich markdown editor (MDXEditor)Blog posts, documentation
richtextWYSIWYG editor with embeds and slash commandsLanding pages, newsletters
booleanYes / No radio buttonsFeature flags, toggles
selectDropdown or checkbox list from fixed optionsCategories, statuses
numberNumeric input (int or float)Prices, sort order
datetimeDate or date-time pickerPublish dates, event times
imageMedia library picker + uploadCover photos, avatars
slugAuto-generated URL-safe identifierPage URLs, permalinks
urlURL input with validationExternal links, social profiles
colorNative color picker with hex outputBrand colors, category badges
jsonRaw JSON editor with validationStructured metadata, configs
referenceLinks to other entries (one or many)Post → author, page → posts
conditionalContent variants with branch selectionA/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.