Skip to Content
DocsCMSCollections

Collections

Collections are structured data tables that define the schema for your dynamic content. You create a collection, add fields, and then add items that store values in those fields.

Creating a Collection

  1. Navigate to the CMS section in the editor sidebar
  2. Click Add Collection
  3. Name your collection (e.g., “Blog Posts”, “Team Members”, “Products”)

Built-in Fields

Every collection includes these built-in fields:

FieldDescription
idUnique identifier for each item
nameDisplay name for the item
slugURL-friendly identifier; often used for dynamic page URLs
created_atTimestamp when the item was created
updated_atTimestamp when the item was last updated

You use these fields without defining them. The slug field is commonly used as the source for dynamic page URLs.

Field Types

You add custom fields to define the structure of your content. Field types are grouped by category:

Basic

TypeDescription
textSingle-line text
rich_textFormatted content with the rich text editor
numberNumeric values
booleanTrue/false toggle
dateDate and time values
colorColor picker value

Contact

TypeDescription
emailEmail address
phonePhone number
linkURL or link

Assets

TypeDescription
imageImage upload; supports multiple files when data.multiple: true
audioAudio file upload; supports multiple files when data.multiple: true
videoVideo file upload; supports multiple files when data.multiple: true
documentDocument upload; supports multiple files when data.multiple: true

Relations

TypeDescription
referenceLink to a single item in another collection
multi_referenceLink to multiple items in another collection

Field Properties

Each field has configurable properties:

PropertyDescription
NameDisplay label shown in the editor
SlugAPI identifier used when binding data or querying; must be unique within the collection
RequiredWhen enabled, the field must have a value before saving
Help textOptional description shown to content editors

Managing Fields

Adding Fields

  1. Open the collection settings
  2. Go to the Fields section
  3. Click Add Field
  4. Select the field type and configure name, slug, required, and help text

Reordering Fields

Drag fields in the Fields section to change their order. The order affects how fields appear when editing items.

Removing Fields

Remove a field from the collection settings. Removing a field does not delete existing values; it only removes the field from the schema. Historical data may remain in the database.

Data loss

Removing a field can make existing values inaccessible. Export or back up important data before removing fields.

CSV Import

You can import items from a CSV file:

  1. Open the collection
  2. Click Import
  3. Upload your CSV file
  4. Map CSV columns to collection fields
  5. Start the import

Import runs asynchronously. Column mapping lets you match CSV headers to your field slugs. The system processes rows in the background and updates the collection when done.

Tip

Ensure your CSV headers match or can be mapped to your field slugs. Use the preview to verify the mapping before importing.

Last updated on