"mark item as viewed" in Wix Pro gallery

re: Wix Pro Gallery is it possible to mark an item as “viewed” after a user clicks it?

I have a gallery with 400 images and it would be nice if it was possible to mark something as viewed, so the user doesnt get completely lost. Thanks in advance!

Hi, @Peabe !!

If that kind of feature hasn’t been implemented yet as a default option in ProGallery, it might take a bit more effort to create a custom gallery using a repeater or similar tools — but in the end, it could lead to a more satisfying result. With repeaters, it’s generally easier to make custom adjustments like that. :slightly_smiling_face:

I have yet to try with repeaters but I guess I’ll give it a shot. wish me luck, haha.

I’m not having any luck with repeaters. Anyone else have an idea or maybe could explain to me how one can use repeaters to mark a picture as "viewed?

it would require code to send data back to the page/repeater once the image is clicked. I havnt built anything like this exactly yet, but you can register a click so it should be possible.

Hi, @Peabe !!

Hello! When using a repeater, you’ll be able to do almost exactly what you want, but it does require a bit of programming. If you have no programming experience at all, it might be a little challenging at first. However, the code involved is quite common, so if you stay active in this community, I’m confident you’ll be able to complete it in the end. :innocent:

Simply put, what you need to do is detect when a specific item in the repeater is clicked, identify that item, and display a “viewed” mark only on that item. Once you can identify the clicked item, the rest isn’t too difficult.

Also, you might want to include some functionality that opens a lightbox or something similar to display a larger version of the image when it’s clicked.

1 Like

I’m not entirely sure, but…

If you’re using Wix Studio, you can try playing around with click interactions. Set the initial opacity of the Viewed text or symbol to 0, and when the item is clicked, make it 100? This way, it should appear whenever a user clicks on the particular repeater item.