Gallery Pro and likes

Hi everyone,
where are the links of a Gallery Pro stored and how can I calculate the most appreciated photo using the code?

Thanks in advance, as always

Looking at API for Galleries I do not see any way to access likes of a certain item of a gallery in the properties: https://www.wix.com/corvid/reference/$w.Gallery.html

Maybe great minds of Forum will have some ideas on this but my guess is that you can not count likes with code and in general unless something is available with default Editor’s functionality

You could use the onItemClick() event handler to open a Lightbox for the clicked item in the Gallery. In the Lightbox you can allow the visitor to rate the photo.

See these examples to see how to set up ratings:

Hi #Yisrael,
Thank You, but I need to use the like of the gallery or a similar solution and not the rating service because I need that users vote yes or no for the single photo and to memorize that vote

Do you know how do this?

@info60119 The onItemClick() event handle triggers for the single photo in the Gallery that was clicked. You can then build a Likes or Ratings system using the examples I posted.

@info60119
You can’t do it with code and using the Wix Pro Gallery as that is a Wix app and is not fully open to Wix Corvid as of yet.

To do it yourself with code, you would have to create your own version as Yisrael has already mentioned and use a lightbox for the image popup/expand and have the likes or the users yes or no submission in that lightbox.

If you are wanting to use code with a gallery then you are best suited to just using a normal gallery and not a Wix Pro Gallery, as that is it’s own app with it’s own settings and it might sometimes override the code or simply ignore it altogether or cause a conflict with the apps own settings etc.

Hi @givemeawhisky
Ok, thank You for the precise answer.