Link Page from Gallery

Hi Guys, need your help again. I have a gallery on my page. I want it to link to other page. My gallery is already connected on my database collection and also linked all my images on the gallery but it can’t open other page that is linked on my image on gallery. Please help. Big thanks!

Please see below screenshot for your reference.

Hi,
Have you tried the gallery clickAction event?

Tal.

Hi Tal. Not yet. Can you help me how to do it? Thanks.

Hi,

The easiest way of achieving this is by copying the live page url and pasting it into every image record in the image collection, then link the url field and you are done.

Hi Tal

How can we use the clickAction = ‘Link’ to navigate to dynamic item page?

$w(‘#dataset1’).onReady(() => {
$w(‘#gallery1’).onItemClicked((event, $item) => {
$w(‘#gallery1’).clickAction = ‘Link’;
$item = $w.at(event.context)
let items = $item(“#gallery1”).items;
let title = items.title[0];
let link = items.link[0];
wixLocation.to(‘/somewhere’ + link);
});
});

Hope to hear from you soon.

Thanks,