I need help finalizing this web page:
Functionality A Repeater Page that pulls data from 3 different databases via Reference Fields
1. The Repeater page displays information from database1 and database2, that also has an icon that links to a 3rd database thats used for a Dynamic Photo Gallery of the pictures for the item(a car) selected in that line of the repeater. It also has a "Details button that displays both all information about the items along with the Owners name (data coming from the car registry DB and the membership DB).
PROBLEM: The Repeater Page proper is correctly displaying each car’s basic details, and the owners basic details. But when I click on the Details button the Lightbox page has no knowledge of the associated car nor owner. I presume will need some Wix Code to pass in the car registry database DashID and Owner Email.
The Dynamic Photo Gallery also has the same problem. It launches but shows ALL the images in the gallery starting at record1, regardless of which car was selected from the repeater. I presume that the same approach to the lightbox would apply here to fix this issue.
Here are some screen shots that show the problem:
Registry Page
The LIGHTBOX PopUP that should display details about the car selected…
DYNAMIC PHOTO GALLERY... This car shows even if I select the 2nd Car which is black...
I DID find in wix code, in the Recipies example this snippit of code. After reading the Wix API for databases, I think some variation of getCurrentItem / setCurrentItem would solve the problem but I am unclear how to proceed.
WIX EXAMPLE FROM RECIPES…
export function dynamicDataset_onReady(event) { let foodistaLink = $w(‘#dynamicDataset’).getCurrentItem().linkFromFoodista; $w(‘#foodistaCredit’).html = <p style="font-size:10px; line-height:1.2em; text-align:center"><span style="letter-spacing:0em"> <span style="font-size:10px"><span class="color_11"><span style="font-weight:bold"> Recipe originally published by <span style="font-family:avenir-lt-w01_85-heavy1475544,sans-serif"><a href="${foodistaLink}" target="_blank">Foodista.com</a></span></span></span></span></span></p>
; }
Any help is greatly appreciated.
JD