Hi I’m using the below script to load Wix Pro Gallery in the light box through the repeater
naming conventions and the fields details
Repeater name - > container9
Lightbox name - > ExGallery
on ExGallery (Lightbox)
Wix Pro Gallery → WPGallery
WPGallery connected to Exhibition database: Gallery (Media Gallery)
Text box → text12
Main database name → Exhibition
Dataset on both the sections is in name dataset1
Fields in database
→ gallery - (Media type) consists 4-6 product photos
→ projectName - (Text) Title of Project
Issue:- On clicking the repeater, Lightbox popup → text12 gets updated with respect to projectName, but there is no change to the Wix Pro Gallery. Please help in doing this in the right way. - Thanks in advance Sameer
The script I’m using on the Repeater page
import wixWindow from ‘wix-window’ ;
import wixData from ‘wix-data’ ;
export function container9_click ( event , $w ) {
wixWindow . openLightbox ( ‘ExGallery’ , $w ( ‘#dataset1’ ). getCurrentItem ());
}
The script I’m using in Light Box
import { lightbox } from ‘wix-window’ ;
$w . onReady ( () => {
let db = lightbox . getContext ();
$w ( “#text12” ). text = db . projectName ;
$w ( “#WPGallery” ). items = [{
“type” : “image” ,
“src” : db . gallery ,
}];
});