There is a problem with populating a gallery with content.
Basically when viewing a car(dynamic item page), the gallery(which has items from another database that is filtered to only show based on the current dynamic item), when you click on another car from the bottom(there is a repeater that showcases other cars) it changes the info from the dynamic dataset, but the gallery doesn't change.
More specifically:
https://www.automotivemarket.ca
(it will be only for mobile - so basically desktop version design is just the elements thrown there).
The setup is quite straight forward the main database CARS, and a database IMAGES.
Images have an image field, and a "cars" reference field, referenced back to cars.
On the dynamic page, the gallery dataset is filtered to show only images from the current item(Car) - from dynamic dataset.
On the bottom of the page there is the "recomended cars" which is basically a repeater, showing other cars(from the CARS database).
On container onclick there is this
wixLocation.to("/redirect?id=" + $item("#dataset2").getCurrentItem()["link-Ads-_id"])
Basicly, at first i just had it like this
wixLocation.to($item("#dataset2").getCurrentItem()["link-Ads-_id"])
But it kept not loading the gallery correctly ( it was keeping the last item's images, not the current ones.)
So what i did is create a "Redirect" page and pass the link of the car there, and on the redirect page get the link of the car and redirect the user to it.I thought it would fix the issue and load the Gallery succesfully.Nothing.
I even tried re-filtered the images dataset(onready)...(even though i already have set the filter from the Dataset Filter UI)
await $w("#dataset1").setFilter(wixData.filter()
.eq("ad", $w("#dynamicDataset").getCurrentItem()._id)
)
Im just out of ideas as to what is goig on...
Listen guys - I know this is an issue with the Gallery regarding loading Dynamic Data - 2ND issue is that other galleries don't support url into gallery - What do you expect me to do if you don't give me answers?
Your not understanding the business aspect of it not working properly.
Our website now loades much faster and is more responsive without thr wix pro gallery but extera images dont load - can you please help!
I've already selected a standard gallery. WIX Pro Gallery Standard Grid Can you screen shot the Gallery you'd like me to select please?
@Maria Fikata, it is an issue with Pro-Gallery at our end. The easiest temporary solution till issue fix is to change gallery type to standard galleries e.g. a standard grid-gallery.
.
Hi!
If you have a dataset that is only used for the gallery, can you please try to call 'refresh()' on it when the dynamic dataset is ready?
something like:
export function dynamic_ready() { //do some code here $w('#dataset1').refresh(); }
Otherwise, can you try updating the gallery data with code?
.
Anyone?
Yes - Can this be looked at please?
Here is the issue live example
https://youtu.be/wQwkK_C29ec