I've a problem with the Pro Gallery. My task is to create a gallery, which is connected to a database. When the user clicks on one of the images, i want to get the title of the image and set a filter to another dataset, based on the title.
To do that, i added an onClick event to the gallery, which is supposed to get the title and stores it in localStorage.
The problem is, the log message always says "Title: undefined"
I also tried the work arounds of these discussions(below), but nothing seems to work.
The console says, that the onItemClicked function can not be used on this selector.
Than I tried to find out the attributes of the event item and got this:
In comparison, this is what an image event item looks, when connected to the same database:
Is there any other way to get some information about the item that was clicked? Any identifier would help(ID, title, etc.).
Or is there even a better alternative to do what i described above? It seems that I'm not the only one experiencing this problem.
Thanks in advance!