Install

Works with Drupal: ^10.3 || ^11

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 18.73 KB
MD5: fcaa371188dba394fe0a47d5dce78496
SHA-1: 2a21d925eff3edc9aa2169c7d227b5a07b67116f
SHA-256: 6198930b2bf11645f3051e3f05b1a5625efc89da4da61d6920b0df9c8654a3b4
Download zip 25.79 KB
MD5: 4141e345915f3cafea77f98d0bee43d8
SHA-1: 98e8a119fd7d79b769ae441cf7b1e24f1229a8bb
SHA-256: cff4770acdd18502ad9535882186d300eb7fbf4051398daa8c78a50b07b93249

Release notes

This maintenance release improves security, configurability, Drupal integration, and media handling.

Changes

  • Replaced the hard-coded media field with the field selected in module configuration.
  • Added URL-path restrictions supporting exact paths, wildcards, and regular expressions.
  • Added validation and logging for invalid regular expressions.
  • Added support for dynamically resolving source fields through Drupal’s Media Source API, improving compatibility with custom media types.
  • Refactored hook implementations into a dependency-injected service.
  • Added cache tags for configuration, content entities, media entities, and referenced files.
  • Hardened gallery previews by creating media elements through the DOM instead of inserting untrusted values through innerHTML.
  • Fixed JavaScript overlay navigation and invalid NULL usage.
  • Removed development logging and local filesystem references.
  • Removed the unnecessary Bootstrap library dependency.
  • Added image alternative text and translatable fallback messages.
  • Updated the configuration form to use Drupal’s Config API.
  • Added Drupal GitLab CI configuration and resolved coding-standard issues.
  • Expanded module documentation.

Requirements

  • Drupal 10.3 or later, or Drupal 11
  • PHP 8.3 or later
  • Upgrade notes

After updating:

Clear Drupal caches.
Visit Configuration → Media → MediaField Gallery Settings.
Verify that the correct media reference field is selected.
Review the allowed URL paths. Leaving the list empty enables the gallery on all paths.

Created by: sanjay_mogra
Created on: 15 Oct 2026 at 12:38 UTC
Last updated: 15 Oct 2026 at 12:39 UTC
Bug fixes

Other releases