I’m trying to create a page with a gallery, that is connected to a collection, while each collection item contains a Media Gallery - Meaning, each item (row) in the gallery contains multiple images.
Once a user hits a button (Next/Prev) it will move to the next/prev row in the collection and show the matching images in the gallery.
Here’s a look at the collection:
Basically, the way I see it there are two possible solutions:
use the built-in index of items in the collections and functions - getCurrentItemIndex(),setCurrentItemIndex() and etc…
create a column of my own with index number, and iterate using that.
The thing is, no matter what I do with the button functions I get errors:
Now I copied that piece of code you inserted above, but I miss just a tiny line. I want the function to simply iterate to the next item, so that gallery that is connected to the collection will show the next line.
What should I enter in the .then() part?