Add a video to database

Hello,

I’m an enthusiast wix user for a while now, and just switch to wixcode recently.
I dont know code, but using tutorial i can achieve basic things.

I’m trying to have a single “project page” with a single layout connected to a single data collection. Each title/images/spec/ are linked to the database.
I’d like to add some project with video content that i uploaded on youtube question is:
Is there a way to add a video url in database and displaying it on the “project page” like a picture, in the same layout ?

Second question, about the empty field:
How can I hide the empty fields in my projects ?

I know its through code that i’ll do what i want and i’m willing to learn but condiser you speak to a monkey with a keyboard

Thank you !

Hey Vincent,

Indeed, you will have to do the above with code. Give it a shot and let us know how it goes. Here are some ideas to point you in the right direction.

  1. You can add a video element to you pages and store the video URLs in the collection. The video elements has a videoUrl property which you can set to the URL from the collection.

  2. You can use the hide( ) function to hide the elements if there is no value.