Media Gallery / PhotoSwipe

Created on 7 May 2025, 17 days ago

Hello
Since using Drupal D11 for the development of a site that will replace the current one that works with D10.4.6, I can't get Media Gallery /photoswipe to work in "without pager" mode for image galleries.
The mode with pagination works perfectly but as soon as I uncheck this function the gallery display is no longer the same and the view scrolling function disappears.

I have reinstalled this site several times thinking that I was doing a wrong maneuver, but with composing and the changes to the "composer.json" file requested when setting up photoswipe, I don't see where there is a problem.
I work from a 14' MacBook Pro and build this "development" version at PlanetHoster where my site runs in production.
I checked that the problem is the same with the browsers: Safari, Chrome and Firefox.

The presentation of the galleries, whatever the mode, is normal (photo-1)
In "with pagination" mode, the view of a gallery presents nine photos with a fairly large space between each one and the pagination is effective at the bottom of the page. (Photo-2)

By activating a photo there is a view counter, the magnifying glass, the close button and the scroll arrows that are active allowing you to view only the views of the chosen page. (Photo-3)

In "no pagination" mode, the layout of the gallery changes: the photos are tighter and appear small dotted lines between the photos (Photo-4)
When activating a photo there is no longer the view counter and the scrolling arrows disappear. We have switched to a mode of a simple display of the chosen view, but the magnifying glass and the close button are present and active. (Photo-5)

What do you think of the change in display and operation with the change in mode "with or without pagination"?
I thought PhotoSwipe would be active in both cases.
I'm asking you this question because it seems that the function with or without pagination is attached to the Media Gallery module
Is this normal operation or did I install something incorrectly?
Thank you for your answer.

NB:I also include a screenshot of the status reports and two others of the composer.json file containing the elements of the modifications requested for the libraries.

💬 Support request
Status

Active

Version

3.0

Component

Default

Created by

🇫🇷France bernard63

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @bernard63
  • ivnish Kazakhstan

    Hi Bernard!

    Do you use the last version of Media gallery?

    When activating a photo there is no longer the view counter and the scrolling arrows disappear.

    I fixed this in 3.0.2 version. Hmmm

    Do you use default Gallery page or do you render Gallery via another way (via Views for example) ?

    Do you use contrib or custom theme? I asked because the module provide default styles. They can conflict with your theme styles. if you use custom theme you need to use custom CSS styles to fix any CSS issues

  • 🇫🇷France bernard63

    Hy Ivnish,
    Yes, all modules are the latest version and are installed via composer. See the screenshot.
    Yes, I'm using the All Gallery view that exists in the system (see screenshot).
    I'm using a theme provided by Drupal (https://drupar.com), which contributes to the free Drupal themes, but also offers more built-in versions like the one here: Milipro.

    I just disabled the Milipro theme, and you're right, everything works normally.
    So I need to check with Drupar, who designed this theme, to see if they can fix it.
    I'll contact them. Do you think it might be a conflict with the CMS?
    Have you had any other cases that I could tell them about? It might help them?

  • ivnish Kazakhstan

    If you have site on hosting, you can create one gallery with pager and second gallery without pager and give me links. I can analyze it. And needs to disable CSS and JS aggregation.

  • 🇫🇷France bernard63

    I am interested in your proposal.
    This site is under construction
    You will find two beginnings of constructions because with one (dev1) I made an architecture with a particular scaffold but fearing that this is the cause of my problem, I started another construction (dev) with a typical "composer" architecture
    I send you the addresses and the administrator ID with its password on your drupal.org address.
    You will be able to do all the manipulations you want.
    If you want to access the server, tell me, I will give you its coordinates by the same method.
    NB : I guess Ravi (Drupar) will be interested in your conclusions

Production build 0.71.5 2024