Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Responsive Gallery Formatter

96 sites No security coverage Drupal 9–11
View on drupal.org

This module provides a responsive image gallery formatter for image fields with multiple values. It allows you to create customizable galleries with touch-enabled overlay windows where the number of images per row adjusts automatically to different screen sizes.

The Responsive Gallery provides the image formatter forimage field multiple cardinality which saves your time and helps to easily create beautiful, modern responsive image gallery with overlay windows containing images with touch enabled, responsive and fully customizable image gallery that varies between number of image items per row depending on screen size according to the configurations.

Module Features

  • Provides a formatter for entities.
  • Choose image styles for images displayed via the fancyBox formatter.
  • Custom wrapper class
  • The image will be grouped on the fancybox if the images are in same view, image or media field with multiple cardinality
  • Images per row according to the screensizes where we can configure for: Extra large devices, Large devices, Medium devices and Small devices

Fancybox Key features

  • No external dependencies
  • Touch and mobile optimized with swipe, drag and pinch-to-zoom gestures
  • Highly customizable with configuration options, Sass and CSS variables
  • Multiple zoom levels
  • Properly manages focus
  • Closes with Back Button
  • Accessible
  • Smooth, natural animations
  • Multiple instances
  • Widely used, battle-tested
  • Best user and developer experience

We can customize the design and layout according to the theme installed on the site or customize with custom css. We can copy the template file from templates/responsive-gallery.html.twig to your theme file and customize the html and implement your own layout with custom css.

Available variables on the twig file are:

Available variables:

- gallery.wrapper_class: wrapper glass
- thumbnails.images: thumbnail images.
- gallery.thumbnail_classes: thumbnail classes

Demo

  • Go to https://simplytest.me/project/responsive_gallery.
  • Click "Launch Sandbox".
  • Install Drupal as normal.
  • Enable "Responsive Gallery" module, and any optional modules you wish to try out.
  • Edit the view where you wish to apply the fancybox and select the image field
  • Select the 'Responsive Gallery' formatter
  • Configure the Image style, Wrapper class and images per row for different devices according to your requirement


Installation and download

Installation with Composer:

composer require 'drupal/responsive_gallery'

Download latest version

Looking for support?

Free community support options
Developers can participate our support channels on a best-effort basis, Drupal Answers.

Contact

Depends on

Dependencies of the latest stable release

  • field Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Jan 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 2
Maintenance
Dormant

Releases

Version Type Core Release date
1.2.x-dev Dev 9–11 Jan 30, 2025
1.2.2 Stable 9–11 Jan 30, 2025