Question:
I can not seem to find a slideshow gallery that supports a setCurrentItemIndex().
Anyone know what I’m missing?
Product:
Wix Studio Editor
What are you trying to achieve:
Desire a full width slideshow and has next/previous arrows and below it another gallery showing thumbnails of the same images in the slideshow, and on a thumbnail onItemClicked() event I changes the full width slideshow to the matching image.
Also, on navigation on either updating the other to match.
What have you already tried:
Tried ProGalley and regular Gallery, but they do not appear to support this.
I’d rather not use a repeater, as I think managing the images will be as easy. Though a repeater using a CMS query could work - but ordering the set of images will require some additional work.
Thanks for the reply - I’m getting in the editor that: “changeSlide” does not exist on type gallery
I’ve tried it on Pro Galleries and Slider Galleries, and I think I tried a list repeater.
Either I’m just missing something simple or maybe not available in WixStudio (not Editor X).
Anybody using this successfully ? Odd there are not more examples - as this seems like it would be super useful.
Using a repeater slideshow works! But do not see a way to connect a CMS collection item’s gallery field to a repeater - so that’s a bummer for my uses. Hopefully missing something - maybe use the data api to loop through a data set item’s gallery of images and add them - worried that’s not efficient.
Maybe I’m missing one of the repeaters that allows for connecting a gallery?
So close . . . (wondering about logic of ProGallery not allowing for changeSlide.
You’re correct. There’s currently no way to connect Slideshow Repeaters to collections but there is a roadmap issue opened for it.
As for Pro Galleries you’re also correct in that you can connect them to CMS but cannot do something like changeSlide(). Though there are next() and previous() on some Pro Galleries this isn’t the same.
I’ll communicate this issue up the chain.
In the meantime perhaps the pre-built Pro Gallery option would work for you? If not then let me know and I’ll give it some more thought.
Awesome - thanks. Seems like adding a changeSlide() to the galleries would be easy - not effecting the behaviors of the galleries (could be some argument against - maybe performance if a user clicks fast between gallery nav and external element changeSlide()).
I’ll check out use of next() - I my have to combine several next() to get to the slide I want shown. Not ideal - and not sure how that will look. Could use splice ? (but not sure that’s any better).