Skip to content

CMS fields user guide

CMS supports various field types that can be added to content models to store structured data. Each field corresponds to a specific data type and has a specific purpose.

Field typePurpose
textSingle-line text. Used for short text values, such as name, title, subtitle.
textareaMulti-line text. Suitable for longer descriptions, introductory paragraphs or additional text information.
slugAutomatically generates a URL-friendly string based on another field, usually title. Used in the formation of URLs for pages.
Field typePurpose
numberNumerical value with decimals. Used for prices, weights, distances.
integerInteger number. Suitable for counters, ratings, order numbers.
boolean / checkboxToggle true/false. For example, “Publish?”, “Active?”.
Field typePurpose
dateDate without time. For example, date of birth, publication, deadline.
datetimeDate with exact time. Used for events, schedule, logs.
Field typePurpose
imageUploading an image. Files are stored in the files/** directory.
fileUploading any type of files. For example, PDF, documents, archives.

Example of use: uploading a PDF document, logos, galleries.

Field typePurpose
selectDropdown list with one choice. For example, “User type”, “Category”.
multiselectAllows you to select multiple options. For tags, categories, features.
Field typePurpose
richtextStructured text editor (WYSIWYG). Support for styles, headings, lists, etc.
markdownMarkdown editor. For users who are familiar with markup. Converted to HTML.
Field typePurpose
arrayArray of simple values. For example, list of tags or keywords.
datalistArray of objects. For example, list of links with label and url fields.
objectOne nested object with multiple fields. For example:
object({
name: text(),
email: text()
})
Field typePurpose
relationshipRelationship with records of another collection. For example, selecting an author (collection: authors).
referenceAdding blocks of different types. For example, gallery, quote, text block, etc.
Field typePurpose
codeField with a code editor. Support for typescript, json and other languages.
documentExtended WYSIWYG editor with support for structured documents.

Tip: Always use fields according to their purpose to ensure proper validation and display of content.