I have a database that includes an URL fields type where the URL points to an image at cloudinary.com. I have created a Repeater to display the items in this database but am trying to display the IMAGE in a lightbox along with additional info from the repeater as pulled from the database.
I am able to write all the elements into the lightbox EXCEPT the image! Here are the details:
WebPage: https://jds-cvoa.wixsite.com/cvoa/CVOA-PartsXREF
Note: there are only four records in the test database and for testing reasons I just added the same url to the database field: Image_URL
HERE IS THE PERTINENT CODE IN THE SENDING PAGE (
import wixData from ‘wix-data’;
import wixWindow from ‘wix-window’;
import wixLocation from ‘wix-location’;
$w.onReady( function () {
//TODO: write your page related code here…
});
export function Thumbnail_click(event, $w) {
//Add your code for this event here:
wixWindow.openLightbox(‘CV-PartXREF-PIC’, $w(‘#dynamicDataset’).getCurrentItem());
}
HERE IS THE CODE IN MY LIGHTBOX(CVOA-PartsXREF)
// For full API documentation, including code examples, visit Velo API Reference - Wix.com
import {lightbox} from ‘wix-window’;
$w.onReady( () => {
let item = lightbox.getContext();
// console.log(item)
// console.log(“========================REPEATERDATA=========================”)
let repimg = item.image_url;
console.log(“from Repater”,item.image_url)
console.log(“derived for LB”, repimg)
let repdesc = item.description;
let reppart = item.oe_part_no;
let repapart = item.aftermkt_vendor_part_no;
let repcomments = item.comments;
$w("#CVPartImg").link = repimg;
$w("#LBdescription").text = repdesc;
$w("#LBoepartno").text = reppart;
$w("#LBaftermkt").text = repapart;
$w("#LBcomments").text = repcomments;
console.log(repimg)
console.log(‘#CVPartImg’).link;
});
THE IMAGE DOES NOT APPEAR IN THE LIGHTBOX… Here is the Debug Log in Preview Mode:
My Website is scheduled to go live in ONE WEEK. I desparately need to get this working!
Thanks
JD