Hi,
I Have a scenario in which I need to connect a “card” in a repeater to a video (from youtube) on a lightbox.
I attached a pic with some explanation. Using the database (description on the pic), the idea is to open a lightbox with a video that will correlate to the card that was clicked on.
I had some attempts with transferring the info to the lightbox with " let receivedData = wixWindow.lightbox.getContext();" but without success.
Hi,
The getContext() function returns the data object passed when the lightbox was opened using the openLightbox() function, if any data was passed. If the lightbox was opened another way, getContext() returns undefined.
Have you passed the data about the video you want to display in the openLighbox() function?
Can someone please help? I’m trying to do the same. Just want to add some thumbnails populated dynamically on a repeater and, when clicked, the Youtube video opens embedded in a lightbox - every single option I’ve tried either didn’t work or opened the same video all the time. I already have the ‘Youtube Link’ as a URL field on my collection.