Go to dynamic page

Hi all,

I have a gallery field rotating through images in a dataset, and would like to go to the detail page for the item currently displayed, when I select a button.

I think I need to get the current item for the dataset (which hopefully corresponds to the image currently being displayed) , then use something like wixLocation.to to launch the respective details page?

Any code examples gratefully received :slight_smile:
I’m new to Velo, so be kind please?

Ok, I’ve worked out how to go to another page using wixLocation.to()

But now I want to use the current image being shown in a scrolling gallery (fed from a database), to go to the correct dynamic page.
There seems to be two possible properties of Galleries that might let me know which image is currently showing, namely:

CurrentItem 
CurrentIndex 

However, according to the API info, not all Galaxies have these properties, and I should use the Capabilities array to determining if they do.
But no matter what Wix Gallery I try and use, none of them have these properties?
It could be a moot point though as they might not allow me to identify which image is currently on show?

Is any one in these forums?

A bit disappointed that no one at Wix or in this forum actually has a solution :stuck_out_tongue:

Ok, so it seems its not possible with the Pro galleries as they don’t have those properties.

So now I need to devise a solution that presents a scrolling list of images from a CMS dataset, and when the user clicks a button, the respective dynamic details page for the associated record is presented.

Anyone done anything like this before?

Ok, I’ve now learnt that Editor X doesn’t have access to any gallery types that expose the required properties.