# CMS: Adding a Dataset Filter to Display Content from Multiple Collections

Source: https://support.wix.com/en/article/cms-displaying-content-from-multiple-collections-using-datasets (updated 2026-11-12)
Related: Wix developer documentation, https://dev.wix.com/docs/llms.txt; Help Center index, https://support.wix.com/en/llms.txt

Using a [dataset filter](https://support.wix.com/en/article/cms-formerly-content-manager-adding-filters-and-sorts-to-datasets-to-control-live-site-content) in the CMS (Content Management System) allows you to display content from multiple collections on a single page. This can be particularly useful if you want to show related items from different collections together, offering a richer experience for your site visitors. For example, if you have a blog collection and an author collection, you can use a dataset filter to display blog posts along with author details on the same page.

> **Notes:**
>
> * Datasets and dataset filters aren't part of the Wix Harmony Editor. In Wix Harmony, you connect a repeater straight to your collection and manage the connections in the Manage Items panel. Learn more about [what's new with the CMS in Wix Harmony](https://support.wix.com/en/article/wix-harmony-whats-new-with-the-cms).
> * In Wix Harmony, you filter a repeater by a value you enter. You can't filter it by the item a visitor is viewing or by a 'Reference' field, so you can't show related items from another collection. Learn more about [filtering and sorting items in repeaters in Wix Harmony](https://support.wix.com/en/article/wix-harmony-filtering-and-sorting-items-in-repeaters).

> **Before you begin, make sure to set up the following:** You need at least two CMS collections:
>
> * **Primary collection:** Connect this collection to elements on the page where you want to display content from both collections. This can be a static or [dynamic page](https://support.wix.com/en/article/cms-about-dynamic-pages).
> * **Secondary collection:** This collection includes info that relates to the items in your primary collection. Make sure your secondary collection has a field that matches the values of a field in your primary collection exactly.

---

## Adding a dataset filter to display content from multiple collections

After adding the dataset filter, you need to connect elements on your page to the secondary collection's dataset to display the filtered content.

**Wix Editor:**

1. [Go to your editor](https://manage.wix.com/account/site-selector/?actionUrl=https%3A%2F%2Fwww.wix.com%2Feditor%2F%7BmetaSiteId%7D%3FeditorSessionId%3D%7Besi%7D%26).
2. Go to the page where you want to show content from both collections. Your primary collection should already be connected to a dataset that connects to the page elements.
3. Add a dataset and connect it to your secondary collection:  
   1. Click **CMS** ![](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/d6b40156-9694-4cfe-9209-54815ef9d6dc/2024/04/15/ed238e86-e950-49b4-9366-667e9fa145d8/02bf8cb6-ce74-4b86-9317-053431a8128e.png)on the left.  
   2. Click **Manage Page Connections**.  
   3. Click **Add a Dataset** in the panel on the right.  
   4. Click the **Choose a collection** drop-down and select your secondary collection.  
   5. (Optional) Edit the name of the dataset.  
   6. Click **Create**.

![Screenshot of adding a dataset that connects to a secondary collection.](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/d6b40156-9694-4cfe-9209-54815ef9d6dc/2024/08/02/ca75e849-93be-49d9-adc0-79561dff6cfd/a864187f-0146-409f-a428-7cb165384db8.png)

1. Add a filter to your secondary collection's dataset:  
   1. Click the **More Actions** icon ![](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/d6b40156-9694-4cfe-9209-54815ef9d6dc/2024/04/16/6883f017-33fe-4bc8-8124-6ac142fceb1e/2e8022a9-84f6-4481-b2a5-e440aa924c42.png) next to your secondary collection's dataset in the panel on the right.  
   2. Select **Dataset Settings**.  
   3. Click **+ Add Filter**.  
   4. Click the **Field** drop-down and select the field that has the same values as a field in your primary collection.  
   5. (Optional) Click the **Condition** field to change the operator that determines how the filter is applied. For example, when set to **Is**, the secondary collection's dataset only retrieves values from the primary collection if the field used in the filter has the same value in both collections.  
   6. Select **Another dataset** under **Value source**.  
   7. Click the **Dataset** drop-down and select the dataset that connects to your primary collection.  
   8. Click the next **Field** drop-down and select the field from your primary collection that matches the secondary collection field. The fields that contain the matching values should be selected in each of the **Field** drop-downs on this filter.  
   9. Click **Add Filter**.

![Screenshot of adding a dataset filter in the Wix Editor.](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/d6b40156-9694-4cfe-9209-54815ef9d6dc/2024/08/02/e720edf8-31cf-49b8-8a6f-f7f5f24c8e23/12569628-8370-4236-b836-2aa104a0d711.png)

1. Connect elements to the secondary collection's dataset to show content from the collection:  
   1. Click the relevant element (e.g. text, image) and select the **Connect to CMS** icon ![](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/d6b40156-9694-4cfe-9209-54815ef9d6dc/2023/05/25/12d3fe2d-37ac-4e81-ae65-0cb0ed186224/18a56cc0-3cd3-4580-873c-063f69dbffdf.png).  
   2. Click the **Choose a dataset** drop-down and select your secondary collection's dataset.  
   **Note:** Don't worry if any of the CMS connections in your editor appear to disconnect at this point. Once you're done with the connections, you can click **Preview** to test the new connections.  
   3. Click the relevant drop-down(s) under **Connections** and select the secondary collection's field(s) that you want to connect.

![Screenshot of connecting a text element to the secondary collection dataset.](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/d6b40156-9694-4cfe-9209-54815ef9d6dc/2024/08/02/bd20464c-9c06-486a-884e-af8ed898aae6/7418d509-af0d-470d-88b8-31bdb0b47e36.png)

1. Click **Preview** to test your connections.
2. Publish your site when you are ready to make the changes go live.

**Studio Editor:**

1. [Go to your editor](https://manage.wix.com/account/site-selector/?actionUrl=https%3A%2F%2Fwww.wix.com%2Feditor%2F%7BmetaSiteId%7D%3FeditorSessionId%3D%7Besi%7D%26).
2. Go to the page where you want to show content from both collections. Your primary collection should already be connected to a dataset that connects to the page elements.
3. Add a dataset and connect it to your secondary collection:  
   1. Click **CMS** ![](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/d6b40156-9694-4cfe-9209-54815ef9d6dc/2024/04/15/ed238e86-e950-49b4-9366-667e9fa145d8/02bf8cb6-ce74-4b86-9317-053431a8128e.png)on the left.  
   2. Click **Manage Page Connections**.  
   3. Click **Add a Dataset** in the panel on the right.  
   4. Click the **Choose a collection** drop-down and select your secondary collection.  
   5. (Optional) Edit the name of the dataset.  
   6. Click **Create**.

![Screenshot of adding a dataset that connects to a secondary collection.](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/d6b40156-9694-4cfe-9209-54815ef9d6dc/2024/08/07/487b44da-ddb6-4744-ac00-0f8b3e2159b5/f82a201a-4c7c-42dc-9120-d41deb1edcc3.png)

1. Add a filter to your secondary collection's dataset:  
   1. Click the **More Actions** icon ![](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/d6b40156-9694-4cfe-9209-54815ef9d6dc/2024/04/16/6883f017-33fe-4bc8-8124-6ac142fceb1e/2e8022a9-84f6-4481-b2a5-e440aa924c42.png) next to your secondary collection's dataset in the panel on the right.  
   2. Select **Dataset settings**.  
   3. Click **+ Add Filter**.  
   4. Click the **Field** drop-down and select the field that has the same values as a field in your primary collection.  
   5. (Optional) Click the **Condition** field to change the operator that determines how the filter is applied. For example, when set to **Is**, the secondary collection's dataset only retrieves values from the primary collection if the field used in the filter has the same value in both collections.  
   6. Select **Another dataset** under **Value source**.  
   7. Click the **Dataset** drop-down and select the dataset that connects to your primary collection.  
   8. Click the next **Field** drop-down and select the field from your primary collection that matches the secondary collection field. The fields that contain the matching values should be selected in each of the **Field** drop-downs on this filter.  
   9. Click **Add Filter**.

![Screenshot of adding a dataset filter in the Studio Editor.](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/d6b40156-9694-4cfe-9209-54815ef9d6dc/2024/08/07/9b47d2f4-0139-41e4-a0a8-286da7063200/3f275db8-b97f-4924-9dea-3d19624c6239.png)

1. Connect elements to the secondary collection's dataset to show content from the collection:  
   1. Click the relevant element (e.g. text, image) and select the **Connect to CMS** icon ![](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/d6b40156-9694-4cfe-9209-54815ef9d6dc/2023/05/25/12d3fe2d-37ac-4e81-ae65-0cb0ed186224/18a56cc0-3cd3-4580-873c-063f69dbffdf.png).  
   2. Click the **Choose a dataset** drop-down and select your secondary collection's dataset.  
   3. Click the relevant drop-down(s) under **Connections** and select the secondary collection's field(s) that you want to connect.  
   **Note:** Don't worry if any of the CMS connections in your editor appear to disconnect at this point. Once you're done with the connections, you can click **Preview** to test the new connections.

![Screenshot of connecting a text element to the secondary collection dataset.](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/d6b40156-9694-4cfe-9209-54815ef9d6dc/2024/08/07/ac095a0d-5a03-4556-99b2-62af6695020e/1d20ce2e-f95c-4e07-9610-00d304b98f46.png)

1. Click the **Preview** icon ![](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/8696077d-830a-4b1e-bd86-9df98f89994a/2023/07/12/45e03e4e-437b-4067-977e-869c3ff1ddd7/357065e4-6113-4838-9dbd-edc880533773.png) at the top right to test your connections.
2. Publish your site when you are ready to make the changes go live.

---

## FAQs

Click below for answers to common questions about filtering by another dataset.

**How do I know which field to select for the filter?**

Select a field in your secondary collection that has values matching a field in your primary collection. This ensures the filter can correctly match and display related content.

**Can I use more than one filter?**

Yes, you can add multiple filters to refine the content displayed from your collections further. Just repeat the steps to [add a filter](https://support.wix.com/en/article/cms-formerly-content-manager-adding-filters-and-sorts-to-datasets-to-control-live-site-content) for each additional condition.

**Can I display content from more than two collections?**

Yes, you can add multiple datasets and filters to display content from more than two collections, as long as the fields you use for matching have corresponding values.

**What if the fields in my collections don't match exactly?**

The content will not be displayed from your secondary collection if the values between the collections do not match. Ensure that the fields in your primary and secondary collections have matching values. If they don't, you may need to update the data in your collections to ensure they align correctly.

**Is it possible to change the dataset name after creation?**

Yes, you can edit the name of the dataset during or after creation to keep your datasets organized and easily identifiable.

**What should I do if my filtered content doesn't display as expected?**

Double-check the fields and values used in your filters to ensure they match correctly. Also, preview your site to test the connections and make any necessary adjustments.
