You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's been a few months since I first installed the plugin. All was working a few weeks ago. I'm actually under Grav v1.7.0-beta.4, UniteGallery is updated.
Firstly, the thumbnails aren't centered correctly. Meaning that tiles are created with excentred images.
Secondly, when clicking on a image of a gallery, the JS opens the view, but the image isn't forced to fit the screen anymore. So if the image is very big, we're like zoomed in.
Here my page structure :
Page "Gallery" (collection.md, template "collection.html.twig" used)
Sub-page "Gallery1" for a gallery (gallery.md, template "gallery.html.twig" used)
Sub-page "Gallery2" for a gallery (gallery.md, template "gallery.html.twig" used)
Sub-page "Gallery3" for a gallery (gallery.md, template "gallery.html.twig" used)
etc...
The gallery page gather some galleries and display a preview of them, so the user can preview a few images and access the full gallery if he wants.
Here's the way it works :
The main gallery page uses a general collection template I created to automize the process of displaying children rapidly. Each child found will launch the process of the inclusion of its template (so, "gallery.html.twig).
I chose, in each sub-page's frontmatter, if I want to display it in that general gallery page (nb : allow the final user to hide/show a gallery in the main gallery page).
When finally displaying the galleries excerpts by browsing the main gallery's children, I limit the number of images for each preview of the galleries, based on a sub-page's frontmatter option I created (so the template "gallery.html.twig" receive a limited number of images).
{% if piclimit %}{% set images_set = images_set|merge(page.media.images|slice(0, piclimit)) %}{% else %}{% set images_set = images_set|merge(page.media.images) %}{% endif %}
A button is added below each preview, to access each full gallery.
When clicking on one button and reaching the page (wich correspond to the Sub-page "Gallery1", etc), the same "gallery.html.twig" is used again. But this time, no limit is used for the thumbnails generation.
to defer the moment where the JS is used. But not using this option doesn't fix the problem.
And the gallery do display, and the JS opens the images, excepted the bug.
How the bug did occur
Firstly, a few weeks ago (or let say, 2 months ago), for no known reason, the thumbnails of the main gallery and of each gallery, started to be badly generated, and cropped/resized with no respect of the image.
Then (and it may be connected) when clicking on a thumbnail, it appeared that the image wasn't correctly handled by the JS or something.
The same two problems do occur with a widget I created to grab the last images of each gallery and gather them in the homepage.
The text was updated successfully, but these errors were encountered:
Hello,
It's been a few months since I first installed the plugin. All was working a few weeks ago. I'm actually under Grav v1.7.0-beta.4, UniteGallery is updated.
Here my page structure :
The gallery page gather some galleries and display a preview of them, so the user can preview a few images and access the full gallery if he wants.
Here's the way it works :
The code used
collection.md :
gallery.md of sub-pages :
I manually change the
gallery_id
number so each gallery has a special identifier.gallery.html.twig :
It's just the logic. I skipped the
{% extends %}
and{% block %}
here.Plugin's config (unitegallery.yaml)
Result
The asset is correctly loaded :
Some code is added in the bottom of the page :
Precision : I use
to defer the moment where the JS is used. But not using this option doesn't fix the problem.
And the gallery do display, and the JS opens the images, excepted the bug.
How the bug did occur
Firstly, a few weeks ago (or let say, 2 months ago), for no known reason, the thumbnails of the main gallery and of each gallery, started to be badly generated, and cropped/resized with no respect of the image.
Then (and it may be connected) when clicking on a thumbnail, it appeared that the image wasn't correctly handled by the JS or something.
The same two problems do occur with a widget I created to grab the last images of each gallery and gather them in the homepage.
The text was updated successfully, but these errors were encountered: