I was wondering if it is possible to code the pro gallery direct, I have come across various posts about coding individual images in separate field keys to a normal gallery. The reason i ask is that I currently have two pro gallerys but this slows the page load speed, if I remove one it speeds up by about 3 seconds.
So just wondering if I can toggle between them using a button
This is the code similar to what I used to used with separate gallery images within the database.
$w.onReady(function () {
let item = $w("#dynamicDataset").getCurrentItem();
$w("#gallery1").items = [
{src: item.image1, title: item.image_title1, description: item.image_desc1},
{src: item.image2, title: item.image_title2, description: item.image_desc2},
{src: item.image3, title: item.image_title3, description: item.image_desc3},
{src: item.image4, title: item.image_title4, description: item.image_desc4},
{src: item.image5, title: item.image_title5, description: item.image_desc5},
{src: item.image6, title: item.image_title6, description: item.image_desc6}
];
});
I just wondered if there is something similar for the pro gallery and using mediaGallery Field Type?
Best wishes
Stephen