Add a new base recipe: media gallery

Created on 22 January 2025, 2 months ago

Problem/Motivation

There is a useful module "Media Gallery" β†’ . We can with a few steps create a photo gallery / video gallery / etc

Feature list:

  • Add media from URL, upload or existing files (core media)
  • Multi-file upload (core media)
  • Drag and drop re-ordering (core media)
  • PhotoSwipe support
  • ColorBox support
  • Optional pagination
  • Optional reverse order
  • Insert gallery into CKEditor πŸ’¬ How to insert gallery to CKEditor Active

DEMO GIF β†’

Proposed resolution

If maintainers will confirm, I will develop a recipe

✨ Feature request
Status

Active

Component

Base Recipe

Created by

ivnish Kazakhstan

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

Comments & Activities

  • Issue created by @ivnish
  • πŸ‡ΊπŸ‡ΈUnited States phenaproxima Massachusetts

    Discussed in Slack, but reproducing here for posterity -- I think this is a great idea, but it need not necessarily be built within the confines of Drupal CMS. I'd say go ahead and build it in its own general project, as your heart desires, and then we can have the media track lead (@tonypaulbarker, currently) take a look at it. If he and the product owner (@pameeela) feel that it would be a valuable inclusion in Drupal CMS, we could certainly add it as a third-party dependency. There's precedence for that -- we already rely on the contributed easy_email_express recipe to set up HTML email for us.

    Postponing for now, but if you do build a recipe for this, please do link it here!

  • πŸ‡¬πŸ‡§United Kingdom tonypaulbarker Leeds

    @ivnish thank you for raising this. @phenaproxima - I am keen to see how we might incorporate these with experience builder but we are not ready to get stuck into how that may look. I am categorising this under the media track for now, as we have discussed and it's a long term aim to have some gallery features. In the meantime people can use Project Browser to add a range of gallery modules and we can discuss and give feedback. I've added a few notes below for how I might go about approaching it.

    There are many different gallery formats - I would lean toward best-in-class solutions for each of the formats that may be different modules, tools and components for each rather than a module that supports them all. Evaluating solutions for accessibility will be key.

    At the moment Splide is my favoured go to for carousel formats, it is pretty strong on accessibility. https://www.drupal.org/project/splide β†’

    For a gallery format of grids of images, I would envisage this to be a combination or recipes and either a Single Directory Component or making use of some base grids.

    We need to consider how to go about displaying images and their accompanying information in modals in an accessible way (and likely consider other formats) too.

    We might use carousels, grids and modals for other things so we should consider the roadmap for other features.

  • ivnish Kazakhstan

    Thanks @tonypaulbarker!

    I think Gallery != Slider

    The Media Gallery module provides a "classical" grid galleries. See GIF demo β†’

    But, I have some sites where Galleries looks like slider. The Media Gallery module can that in combination with Slick module.

Production build 0.71.5 2024