top of page

Forum Posts

Marylin MONTOYA
May 19, 2018
In Coding with Velo
Hi everyone, I am just learning the code so real beginner but I am having to advance very quickly. I am unable to connect gallery items to my lightboxes (I have 28 of them that correspond to the 28 gallery items) I have tried the following but doesn't work: On gallery page export function gallery1_itemClicked(event, $w) { $w('#dataset1').setCurrentItemIndex(event.itemIndex) .then(() => { wixWindow.openLightbox('lightbox name', $w('#dataset1').getCurrentItem()); On one light box page to test import {lightbox} from 'wix-window'; $w.onReady(() => { let item = lightbox.getContext() I am probably making a very stupid mistake but I don't know how to code, and it's a miracle I got this far. Can anyone help me?
0
2
73

Marylin MONTOYA

More actions
bottom of page