I’ve got a box in the homepage that importing a random “position” from the DB. How can I create a link from the correct position that shows at the box to the lightbox?
this is the site -
I tried to use the
wixWindow.openLightbox(“View”);
thing but it’s didn’t imorted the correct position to the lightbox.
Thanks.
Its looks like this -
//----
export function dataset7_ready(event) {
//Add your code for this event here:
let counter = 0
const numberJobs = 4
const totalHotJobs = $w(‘#dataset7’).getTotalCount()
setInterval(() => {
$w(‘#dataset7’).getItems(counter % numberJobs, numberJobs).then(items => {
$w(‘#text81’).text = items.items[0].title
counter = counter + 1
if (counter >= totalHotJobs) {
counter = 0
}
})
}, 4000)
}
//-----