Question:
Displaing CMS in lighbox.
Product:
I’m trying to figure out this dilemma in WixStudio.
What are you trying to achieve:
Following the example from this article THIS ONE , I’m trying to display content from a database in my lightbox. Text fields and photos are displayed, but tags are not. More precisely, they are displayed, but not entirely correctly. To be more precise, ALL tags from collection are displayed, not just those assigned to the element.
What have you already tried:
NOT HELP
Also im using something like this:
Lighbox code:
import wixWindow from 'wix-window';
import wixData from 'wix-data';
$w.onReady(function () {
let itemObj = wixWindow.lightbox.getContext();
console.log(itemObj)
$w("#templates").setFilter(wixData.filter().eq("_id", itemObj));
});
Page code:
$w.onReady(() => {
$w("#templates").onReady(() => {
let itemObj = $w("#templates").getCurrentItem();
$w("#button32").onClick(() => {
wixWindow.openLightbox("Send", itemObj._id)
});
});
});
Additional information:
Please help me with this, im really need a solution.