Images and Videos from Database in the same Gallery

Hi,
I already asked the Wix support but they directed me here with this issue. I searched the forum but didn’t find a solution that worked for me yet, maybe someone has a good thought on this:

I have a database that contains texts, titles, images and also videos. I managed to create different dynamic pages that are populated with the content; however I’m struggling with the combination of images and videos.
Ideally, I would like to add both media types in one field (field type media gallery) but that seems not possible with the standard methods. Is there a way to achieve this in code?

I’m still quite new to Wix and Corvid but not afraid of reading / learning about it, just need some guidance :slight_smile:

Thanks!

same problem here!! cant find any solutions :frowning:

@skmedia that doesn’t solve the problem, as i’m using the database to upload the content. its a dynamic gallery connected to database. But the database doesn’t allow to upload video and images together. Do you have any solutions?

@adriendlcrx You could set up an array populated dynamically and feed it to the gallery. That way you could add conditions to push videos first if they exist, or else images only.