# CMS: Connecting the Media Gallery Collection Field Type to a Pro Gallery

Source: https://support.wix.com/en/article/cms-connecting-the-media-gallery-collection-field-type-to-a-pro-gallery (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

The media gallery field type allows you to store multiple images and videos for each item in your CMS collection. After adding this field type, add the media associated with each individual collection item. 

  
 To display these images and videos on your site, connect a Pro Gallery to a dataset that binds to your media gallery field. This type of setup is ideal for dynamic item pages that are meant for showcasing details about a particular collection item.

> **Alternatively:** If you want your gallery to [display images from several different collection items](https://support.wix.com/en/article/cms-displaying-collection-content-in-a-pro-gallery) rather than showing multiple images for a single item, connect the gallery to the Image field type. The Image field connection is ideal for [dynamic list pages](https://support.wix.com/en/article/cms-setting-up-a-dynamic-list-page) and static pages.

You can connect Pro Galleries to the media gallery field on static pages too. For example, you could connect a Pro Gallery on your home page to the media gallery field type. Then connect navigational buttons that allow visitors to cycle through each collection item, viewing several images in the gallery for each item. You could also add a filter to the dataset to only include certain items, or add a sort that determines the order in which the previous/next items appear.

![A screenshot of a Media Gallery field in a collection with the Manage media option highlighted.](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/d6b40156-9694-4cfe-9209-54815ef9d6dc/2023/10/04/5d772261-9066-4213-864d-506d7f836a68/d9a40f13-9d22-4161-b07e-0a21ed221566.png)

> **Note:** In the Wix Harmony Editor, you can connect the Wix Gallery to a 'Media Gallery' field inside a repeater or on an item page. Learn more about [connecting the Wix Gallery to a 'Media Gallery' field in Wix Harmony](https://support.wix.com/en/article/wix-harmony-editor-connecting-the-wix-gallery-to-a-media-gallery-field).

---

## Step 1 | Add a media gallery field to your collection

Add a media gallery field type to your collection, then add images or videos for each collection item. Then organize your media items and add information about each image or video.

### To add a media gallery 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. Alternatively, you can click **CMS** ![](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/d6b40156-9694-4cfe-9209-54815ef9d6dc/2023/07/18/c6258392-fdef-4a6b-8b85-1149e3260153/ab886b0a-e79c-4664-bea2-56ac47af29cb.png) in your Editor.
2. Click the relevant collection.
3. Add the media gallery field to the collection:  
   1. Click **Manage Fields**.  
   2. Click **+ New Field**.  
   3. Click the **Media gallery** field.  
   4. Click **Choose Field Type**.  
   5. (Optional) Enter a name for the field.  
   6. Click **Save**.
4. Add and organize your media in the media gallery field:  
   1. Click the Media Gallery field in your collection next to the relevant item.  
   2. Click the Add Media icon ![](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/d6b40156-9694-4cfe-9209-54815ef9d6dc/2023/10/04/0a4868b3-aa1f-4173-bcb1-304a0e0fb877/bc5b34ed-c05e-406e-adc3-f39e7dcf57c7.png).  
   3. Click **+ Add Media**.  
   4. Use the tabs on the left to choose media or click **+ Upload Media** to upload new media.  
   5. Click **Add to Item**.  
   6. Select an item and enter a title, description, and alt text on the right.  
   7. (Optional) Click **Add Link** at the bottom right to link the item to a URL. Then enter a URL and choose how you want the link to open when clicked: **New tab** or **Current tab**. Click **Save**.  
   8. Repeat steps 4f-4g above for each media item.  
   9. (Optional) Drag the media items to reorder them. You can also click **Arrange by** to order the items by title or file name.  
   10. Click **Save** at the bottom right.

![A screenshot of the Manage gallery media window with an item selected and its title, description and alt text shown.](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/d6b40156-9694-4cfe-9209-54815ef9d6dc/2023/10/04/99922312-0857-4fd9-8171-9899d0f358b9/21e734a4-c75c-4a5d-a0bf-ceb48985731b.png)

1. Repeat steps 3-4 above for each item in your collection. See the next section to learn about other features you can use in the media gallery manager.

---

## Step 2 | (Optional) Manage the media for each item

While managing the media for each collection item, you can choose the order in which new uploads are added, set focal points on images, and more.

### To manage the media in your media gallery 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. Alternatively, you can click **CMS** ![](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/d6b40156-9694-4cfe-9209-54815ef9d6dc/2023/07/18/c6258392-fdef-4a6b-8b85-1149e3260153/ab886b0a-e79c-4664-bea2-56ac47af29cb.png) in your Editor.
2. Click the relevant collection.
3. Click the relevant media gallery field and select **Manage media**.

![A screenshot of a Gallery field in a collection with the Manage media option open.](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/d6b40156-9694-4cfe-9209-54815ef9d6dc/2023/10/04/631f46aa-646a-4eff-85d2-a02e1776dd76/cff20f31-480b-4428-89c1-829f96424a75.png)

1. Choose what you want to do:  
   * **Add media:** Click **+ Add Media**, select the files you want to add and click **Add to Item**.  
   * **Choose a default order and names:** Click the Settings icon ![](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/d6b40156-9694-4cfe-9209-54815ef9d6dc/2023/10/04/a283b4aa-94ca-4deb-8fc3-0ea595738090/ae641dfc-29c4-403b-8de6-21993292b61c.png) at the top right and choose from the options:  
         * **New media is added to:** Choose whether new media you upload is added to the beginning or end of the gallery.  
         * **Name for new media:** Choose to leave the names of new media files empty or to name them the same as the file names.  
   * **Reorder:** Drag the media items to reorder them. You can also click **Arrange by** to order the items by title or file name. Click and drag a media item to reorder it.  
   * **Select all:** Click **Select All** to select each media item.  
   * **Delete:** Select the relevant image or video and click **Delete**.  
   * **Replace:** Select the relevant media item and click **Replace Media** on the right. Then choose the image or video you want to choose and select **Add to Item**.  
   * **Adjust focal point:** Select the relevant item and click the Adjust Focal Point icon ![](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/d6b40156-9694-4cfe-9209-54815ef9d6dc/2023/10/04/75fb6deb-aabe-4273-9fd1-40765e1699b6/0aa5afb0-7643-4170-8dbd-55db6663a290.png). Then select the part of the image or video you want to highlight.  
   * **Add info:** Select the relevant item and enter a title, description, and alt text in the fields on the right.  
   * **Link:** Select the relevant item and click **Add Link** at the bottom right to link the item to a URL. Then enter a URL and choose how you want the link to open when clicked: **New tab** or **Current tab**. Then click **Save**.

---

## Step 3 | Connect a Pro Gallery to the media gallery field

Add a Pro Gallery to your site if you do not already have one to display the media in. This type of gallery setup is ideal for dynamic item pages as it can show multiple images or videos for a single item. Connect your gallery to a dataset that connects to your collection. Then connect to the Media Gallery field you just set up.

**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 add a gallery that displays media for one collection item at a time.
3. Click **Add Elements** ![](https://d2x3xhvgiqkx42.cloudfront.net/65d5031a-8d20-483c-b08f-0a758e1cf2fd/68a0236f-77f4-43c6-931f-8298ae691a9e/2022/11/17/01f24c8b-2ea3-4d06-a26d-9975a43d617e/a79e245b-4870-4444-ba82-248eca4eb9a7.png) on the left side of the editor.
4. Click **Gallery**.
5. Click and drag the relevant Pro Gallery onto your page.

![A screenshot of the Add Elements panel with Pro Galleries selected under Gallery.](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/d6b40156-9694-4cfe-9209-54815ef9d6dc/2023/10/04/8e81bf06-61aa-4124-a32d-13a54b6cbda9/ddf13f87-9022-44c2-bd3b-f730ed4b74c3.png)

1. Remove the default images from the gallery:  
   1. Click **Manage Media** on the gallery.  
   2. Click **Select All**, then click **Delete**.  
   3. Click **Done**.
2. Click the **Connect to CMS** icon ![](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/d6b40156-9694-4cfe-9209-54815ef9d6dc/2023/06/16/2d484f5d-e1bf-4d48-9e42-82216e8b88de/08e74518-edad-42f8-b007-c974ba767eb6.png).
3. Create a new dataset to connect or choose an existing dataset:  
   * **Create a new dataset:**  
         1. Click **Create Dataset**. If you already have a dataset on your page, click the **Choose a dataset** drop-down and select **Create a New Dataset**.  
         2. Click the **Choose a collection** drop-down and select the relevant collection.  
         3. (Optional) Click the **Dataset name** field and enter a name for the dataset.  
         4. Click **Create**.  
         5. Click the **Choose a dataset** drop-down again and select the relevant **(Media Gallery)** field under the dataset.  
   * **Connect an existing dataset:**  
         1. Click the **Choose a dataset** drop-down.  
         2. Select the relevant **(Media Gallery)** field under the relevant dataset.

![A screenshot of the Connect Gallery panel with a Media Gallery dataset selected from the drop-down.](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/d6b40156-9694-4cfe-9209-54815ef9d6dc/2023/10/04/e91dc605-c1cf-47cf-96d7-04c701937ece/05c79f55-b495-43fd-bda1-c24c9d711608.png)

1. (Optional) If you connected to a regular dataset, rather than a dynamic page dataset, [add a filter to the dataset](https://support.wix.com/en/article/cms-formerly-content-manager-adding-filters-and-sorts-to-datasets-to-control-live-site-content#adding-filters-to-your-dataset-to-exclude-items-from-your-page) to control which item's media displays. If using [navigational buttons](https://support.wix.com/en/article/cms-about-dataset-click-actions-for-buttons-and-images#next-item-previous-item) to cycle through items, you can [add a sort condition](https://support.wix.com/en/article/cms-formerly-content-manager-adding-filters-and-sorts-to-datasets-to-control-live-site-content#adding-sort-conditions-to-your-dataset-to-sort-the-items-on-your-page) to control the order in which the previous/next items load.
2. Click the Pro Gallery element and select **Settings** to customize your gallery's layout, design, and more. Learn more about [customizing your Pro Gallery](https://support.wix.com/en/article/wix-pro-gallery-customizing-the-gallery-settings).  
**Tip:** You can use the gallery's built-in 'Load More' button in the [layout settings](https://support.wix.com/en/article/wix-pro-gallery-changing-the-layout-settings#custom-layouts) to restrict the number of images or videos displayed on the page before visitors click to see more.

**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 add a gallery that displays media for one collection item at a time.
3. Click **Add Elements** ![](https://d2x3xhvgiqkx42.cloudfront.net/65d5031a-8d20-483c-b08f-0a758e1cf2fd/68a0236f-77f4-43c6-931f-8298ae691a9e/2022/11/17/01f24c8b-2ea3-4d06-a26d-9975a43d617e/a79e245b-4870-4444-ba82-248eca4eb9a7.png) on the left side of the editor.
4. Click **Gallery**.
5. Remove the default images from the gallery:  
   1. Click **Manage Media** on the gallery.  
   2. Click **Select All**, then click **Delete**.  
   3. Click **Done**.
6. Click the **Connect to CMS** icon ![](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/d6b40156-9694-4cfe-9209-54815ef9d6dc/2023/06/16/2d484f5d-e1bf-4d48-9e42-82216e8b88de/08e74518-edad-42f8-b007-c974ba767eb6.png).
7. Create a new dataset to connect or choose an existing dataset:  
   * **Create a new dataset:**  
         1. Click **Create Dataset**. If you already have a dataset on your page, click the **Choose a dataset** drop-down and select **Create a New Dataset**.  
         2. Click the **Choose a collection** drop-down and select the relevant collection.  
         3. (Optional) Click the **Dataset name** field and enter a name for the dataset.  
         4. Click **Create**.  
         5. Click the **Image sources connect to** drop-down and select the relevant **(Media Gallery)** field.  
   * **Connect an existing dataset:**  
         1. Click the **Choose a dataset** drop-down and select the relevant dataset.  
         2. Click the **Image sources connect to** drop-down and select the relevant **(Media Gallery)** field.

![A screenshot of the Connect Gallery panel in the Studio Editor with Image sources connected to a Media Gallery field.](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/d6b40156-9694-4cfe-9209-54815ef9d6dc/2023/10/04/8b4954cb-f7d8-481a-bf28-bae07e33df29/c5aadb41-c587-493d-abec-1e67444f9acc.png)

1. (Optional) If you connected to a regular dataset, rather than a dynamic page dataset, [add a filter to the dataset](https://support.wix.com/en/article/cms-formerly-content-manager-adding-filters-and-sorts-to-datasets-to-control-live-site-content#adding-filters-to-your-dataset-to-exclude-items-from-your-page) to control which item's media displays. If using [navigational buttons](https://support.wix.com/en/article/cms-about-dataset-click-actions-for-buttons-and-images#next-item-previous-item) to cycle through items, you can [add a sort condition](https://support.wix.com/en/article/cms-formerly-content-manager-adding-filters-and-sorts-to-datasets-to-control-live-site-content#adding-sort-conditions-to-your-dataset-to-sort-the-items-on-your-page) to control the order in which the previous/next items load.
2. Click the Pro Gallery element and select **Settings** to customize your gallery's layout, design, and more. Learn more about [customizing your Pro Gallery](https://support.wix.com/en/article/studio-editor-adding-and-customizing-the-pro-gallery#customizing-the-pro-gallery-settings).  
**Tip:** You can use the gallery's built-in 'Load More' button in the [layout settings](https://support.wix.com/en/article/wix-pro-gallery-changing-the-layout-settings#custom-layouts) to restrict the number of images or videos displayed on the page before visitors click to see more.
