Hey @timoetting I think I’ve fixed the issue with the multiple galleries in your plugin.
In your code I replaced every line where you’re using something like this
to something like this : container.find('.galleryField__items--sort .galleryField__item')
Where container is a variable defined inside the scope of the on event : $(this).closest('.field-grid-item')
This way all the events are limited to the single gallery.
I’m not gonna do a pull request because you can for sure fix it in a better way, I just looked for a quick way to fix it but you can probably find a better and more elegant solution.
I tested the code on my local installation and is working perfectly
I’ll clone the repo and push my version tomorrow morning when I’m back in front of my mac. Just as a temporary fix untill @timoetting finds the time to fix the bug in the official version
Hey Tim,
thanks for the plugin!
I initially set up the plugin with the aspectRatio: 1:1 option and created some galleries. Now I decided that I would like to see the aspect ratio in the backend, so I deleted the aspectRatio line from the blueprint. Sadly, all galleries are faulty and empty now in the panel (frontend still works though). Any way to fix this without deleting all galleries?
Nope, just tried that but doesn’t change anything. It’s not that much of a problem since once I add the aspectRatio again everything works just fine. I’m still on Kirby 2.2.3 btw, could that be the problem?
I’ve created a widget that pulls content from all pages. The widget allows you to create new pages and assign media to a field on the created page or multiple existing pages. I plan on releasing this as a standalone plugin soon if this would fit your needs?
It also has gif previews for video and soundwave previews for audio, maybe a bit extra functionality but it’s most definitely doable, also all the functionality of the gallery field but more.