# Problem connecting gallery to database

**URL:** <https://forum.wixstudio.com/t/problem-connecting-gallery-to-database/49114>\
**Category:** Ask the community\
**Created:** [April 26, 2022, 12:55pm UTC](https://forum.wixstudio.com/t/problem-connecting-gallery-to-database/49114 "2022-04-26T12:55:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tal18574](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/tal18574/32/7688_2.png) [@tal18574](https://forum.wixstudio.com/u/tal18574)\
**Post date:** [April 26, 2022, 12:55pm UTC](https://forum.wixstudio.com/t/problem-connecting-gallery-to-database/49114/1 "2022-04-26T12:55:56Z")

</div>

Hi

I’ve created a database with a gallery field. Unfortunately, when I’m trying to connect it to the element in the item’s dynamic page, it appears to be blocked and greyed out. The only option I have is to connect it to a single image.

Any solutions?  
Thanks.

 ![](https://us1.discourse-cdn.com/wix/original/3X/5/9/597da0342d06a23de75685cf3247bc1c0bed8bf5.png)

 ![](https://us1.discourse-cdn.com/wix/original/3X/b/0/b0c6a196a34a07f8a1686059a2e79fa2a2418975.jpeg)

---

<div class="post-metadata">

**Author:** ![Rob](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/rob/32/84134_2.png) [@Rob](https://forum.wixstudio.com/u/Rob)\
**Post date:** [April 26, 2022, 3:41pm UTC](https://forum.wixstudio.com/t/problem-connecting-gallery-to-database/49114/2 "2022-04-26T15:41:17Z")

</div>

Was able to check but if you want to connect a gallery field with all of the information set up in the content manager, [you would choose to connect to the gallery field](https://support.wix.com/en/article/displaying-collection-content-in-a-gallery#option-2-gallery-media-gallery-option) . This connects to the gallery inside the line item; you should see inside the _ **Connect a dataset** _ section.

![](https://us1.discourse-cdn.com/wix/original/3X/7/5/75e032cf6943a3cf3aa0f5e3e1293e1a0e1dd258.png)

* * *

There is the option to connect a gallery using [the default dataset option](https://support.wix.com/en/article/displaying-collection-content-in-a-gallery#option-1-default-dataset-option) in which you connect the image, title text individually. Technically you have multiple fields in this setup and then are displaying them together in the gallery.
