sachinchoolur / lightgallery.js

Full featured JavaScript image & video gallery. No dependencies
https://sachinchoolur.github.io/lightgallery.js/
Other
5.3k stars 596 forks source link

Thumbnail plugin isn't working #183

Closed Nightwing0815 closed 3 years ago

Nightwing0815 commented 4 years ago

Hey there,

I'm using the gallery in a contao 4.9.x installation, lightgallery is installed via extension. So i added the thumbnail plugin and changed the code to start it, it produces error's and isn't working, see screenshot.

Unbenannt

Other plugins are working well (i added the scripts from this repo). Great gallery, by the way!

Thanks in advance,

ToM

Nightwing0815 commented 3 years ago

Okay, i found the problem, but without solution: It's working fine in a normal html markup, i.e. gallery, but when i create a different markup, to only show the first pic of a gallery, it'll fail. So it would make sense, to create a better range for looking the selectors, isn't it ? I'll attach you an example of the original markup and my changed markup, which is not working with the Gallery. Others do work?!? So i hope, you'll have a look onto this? Would be great. Here's the code: CODE.zip

ToM

Nightwing0815 commented 3 years ago

Okay, the error was in generating the markup, so this is closed.

ToM