How to open the images(query block) in a lightbox

Hi!

In the previous thread, I was asking how to query the images from HappyFiles folders. Now, I got it sorted. Thanks for you guys who helped in this!

Now, I have another question. In my query block, I add a div in a query template to wrap the image to make it a link that opens the image in a lightbox.

But, I don’t know what to set. All those options are not related to the image.

Thanks in advance!

Regards,
Jornes

Hey @jornes.

This should be possible.
Everything you have to do is to toggle the Lightbox option.

This is done automatically when enabling the Lightbox option on the Image block.
So you can remove it.
What you want to achieve with the Link Modal is for a dedicated trigger, like a button for example.

2 Likes

Thanks @Marius !

I overlooked that. Thank you!

It worked.

is it currently the lightbox doesn’t have image count (at the top left in the screenshot below)?

And then, how to achieve inifinite scrolling in Cwicly? Like when I have many images, I want to show 9 images at first, then the rest of the images load as I scroll (I did this in Bricks). I would love to know how can I do this in Cwicly.

Thank you!

I’m not sure if this is supported.
You can have a look here to see if you can find anything.

Some upgrade is planned for the future:


Hope that helps.

1 Like