# CMS: Understanding the Structure of Your Collection

Source: https://support.wix.com/en/article/cms-about-the-structure-of-your-collection (updated 2026-11-10)
Related: Wix developer documentation, https://dev.wix.com/docs/llms.txt; Help Center index, https://support.wix.com/en/llms.txt

Wix's CMS (Content Management System) allows you to manage your site's content efficiently. It helps you create, store, and display content dynamically across your website. Understanding the structure of your CMS collections ensures that your content is organized, easily manageable, and dynamically displayed on your Wix site.

---

## How collections work

In the CMS,[collections](https://support.wix.com/en/article/cms-formerly-content-manager-creating-a-collection) are like databases where you store your content. Each collection has a specific structure that defines the fields and their types. You can only connect elements on your page to fields that are defined in your collection. This setup ensures that your content is organized and can be dynamically displayed on your site.

---

## Benefits of defined fields

Defined fields in your collections help in several ways:

* **Connecting page elements:** Connect your page elements to defined fields so they show your content correctly. Learn more about [connecting page elements to your collection](https://support.wix.com/en/article/cms-connecting-elements-to-a-collection-using-a-dataset).
* **Creating dynamic URLs:** When [constructing URLs for dynamic pages](https://support.wix.com/en/article/cms-creating-unique-dynamic-page-urls), you can only use fields from the defined structure. This helps maintain consistency and avoid errors.

---

## Undefined fields

Undefined fields are those that appear in your collection but are not part of the defined structure. This can happen if you [restore a previous version of your site](https://support.wix.com/en/article/viewing-and-managing-your-site-history). In such cases, the old structure is restored, but the content remains unchanged, leading to undefined fields. These fields appear with a **Warning** icon ![](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/d6b40156-9694-4cfe-9209-54815ef9d6dc/2024/10/08/e24c8819-96f8-4d3b-b9b7-2b93aa8462ee/de29dc6d-1f31-4244-91f1-23d6735a38f7.png), indicating they need to be defined.

> **Note:** You can't define undefined fields in sites built with the Wix Harmony Editor. Instead, copy their content into a [new field with the field type you need](https://support.wix.com/en/article/cms-formerly-content-manager-adding-a-field-to-a-collection).

### To define an undefined field:

1. [Go to CMS](https://www.wix.com/my-account/site-selector/?buttonText=Go%20to%20CMS&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https://www.wix.com/dashboard/%7B%7BmetaSiteId%7D%7D/database/) in your site's dashboard.
2. Click the relevant collection.
3. Hover over the **Warning** icon ![](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/d6b40156-9694-4cfe-9209-54815ef9d6dc/2024/10/08/e24c8819-96f8-4d3b-b9b7-2b93aa8462ee/de29dc6d-1f31-4244-91f1-23d6735a38f7.png) that appears next to the undefined field's name.
4. Click **Define field**.
5. Click **Change type** next to the **Field type**.
6. Select the appropriate [field type](https://support.wix.com/en/article/cms-formerly-content-manager-about-your-collection-fields#field-type) for the data you are storing in the field.
7. Click **Change Field Type**.
8. Click **Save**.

![Screenshot of setting the field type.](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/d6b40156-9694-4cfe-9209-54815ef9d6dc/2024/10/09/d815c237-d108-497b-b4df-e14b4941553e/c488ce3e-7694-41f9-af93-6349d8138a75.png)

> **Note:** The Field ID is automatically defined when an undefined field is created and cannot be modified.

---

## Velo by Wix and undefined fields

When using Velo by Wix, you can add content that doesn't belong to an existing field[using the Data API](https://dev.wix.com/docs/develop-websites/articles/databases/wix-data/data-api/working-with-the-data-api). This creates a new field in your collection, but it remains undefined. Define these fields with a field type before you connect them to elements on your site. See the steps above for directions.

---

## Handling errors and restoring site history

[Restoring your site from site history](https://support.wix.com/en/article/viewing-and-managing-your-site-history) reverts its pages and their designs to a previous version. This applies to your[dynamic pages](https://support.wix.com/en/article/cms-about-dynamic-pages) and their layouts. However, the content and data structure (schema) in your CMS collections are not reverted when restoring your site. This can result in undefined fields. If needed, you can restore your collections to older versions using[CMS backups](https://support.wix.com/en/article/cms-formerly-content-manager-backing-up-your-collections).

If you use sandbox collections, keep your sandbox and live content in sync. Otherwise, visitors may see a 404 error. Learn more about[syncing your sandbox and live collections](https://support.wix.com/en/article/cms-accessing-and-syncing-your-sandbox-and-live-collections#accessing-and-syncing-sandbox-and-live-collections).
