Can I open the slick carosuel in lightbox?

Created on 30 May 2025, 3 months ago

Hi, I have a multi value image field (media type gallery).
I can display all images of this field inline in my page as slick carousel.
In the media view mode I used format "blazy" image - and in the settings for "Media switcher" the option "Image to Slick Lightbox".
Now, when clicking on one of my images within the inline slick - this image is opened in the lightbox. What am I missing so that not only the image is opened in the lightbox - but instead the whole slick slideshow? I want to navigate through all images of the parent image field within the modal lightbox.
Is this possible?

💬 Support request
Status

Active

Version

2.0

Component

Documentation

Created by

🇩🇪Germany vistree

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

Comments & Activities

  • Issue created by @vistree
  • 🇮🇩Indonesia gausarts

    Thank you.

    Short answer: yes.

    > In the media view mode I used format "blazy" image - and in the settings for "Media switcher" the option "Image to Slick Lightbox".

    Directly set Media switcher on the active formatter, not it's media view mode.

    If using Views, read Gotchas > Use field template:
    https://www.drupal.org/project/slick_views

    Let me know?

  • 🇩🇪Germany vistree

    Hi @gausarts, thank you for your reply!
    I have a paragraph type "gallery". This has one field to embed one gallery media.
    Within the gallery media type, there is an image field - to upload multiple images.

    I set the Media switcher on image view mode. Is this wrong? Should I add it somehow to the gallery media?

  • 🇩🇪Germany vistree

    Thanx again @gausarts,
    setting the media switcher on Gallery image field did the trick.

Production build 0.71.5 2024