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.
![](https://static.wixstatic.com/media/a27d24_e5fe62d2c4dc4cee88bfd067b5f29bed~mv2.png/v1/fill/w_980,h_1327,al_c,q_90,usm_0.66_1.00_0.01,enc_auto/a27d24_e5fe62d2c4dc4cee88bfd067b5f29bed~mv2.png)
Thanks!
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.
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?
Or