Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Views Lightbox - Views Vanilla JavaScript Lightbox (VVJL)

Security covered Maintenance fixes only 108 sites

This module enhances Drupal Views by allowing you to create stunning, responsive lightboxes for content. It integrates directly with the Views UI, offers customizable options for appearance and animations, and includes accessibility features.

VVJL adds an image-grid lightbox format to Drupal Views. It is for site builders who want a view's images shown as a grid, with each image opening full size in a modal viewer, without custom code.

Each result row becomes one tile. The first field of the row must be an image. Click the small expand button on a tile and a dialog opens with that image, a "1 / N" counter, "Close", "Previous" and "Next" buttons and a colored overlay behind it. What sets VVJL apart from the other VVJ formats is this grid plus full-size viewer, with settings for tile size, gap and overlay color. It requires VVJ Core, which holds the settings shared by all VVJ formats.

Start here

Features

VVJL has no settings page of its own. Open a view under Structure > Views, set "Format" to "Views Vanilla JavaScript Lightbox", set "Show" to "Fields", then open "Settings". The form warns that the first field must be an image.

  • "Grid settings": "Grid image width (px)" (default 330, minimum 50) and "Grid image gap (px)" (default 24).
  • "Animation settings": "Animation type" is "None", "Zoom", "Slide from Top", "Slide from Right", "Slide from Bottom" or "Slide from Left". The default is "Slide from Bottom". It applies when a visitor clicks "Next" or "Previous" in the viewer. Visitors who ask their device for reduced motion see no animation.
  • "Overlay settings": "Overlay color" (default white), "Overlay opacity" (0.0 to 1.0, default 0.7) and "Disable overlay color", which turns the overlay off.
  • Captions: the fields after the image show as a caption on the tile and again in the viewer.
  • Keyboard and screen readers: Tab stays inside the open dialog and Escape closes it. The dialog is marked as modal, and the counter is announced as it changes. Each tile has a hidden heading such as "Slide 2 of 6", and the button reads "Expand slide 2". With a single image, "Previous" and "Next" are hidden.
  • Shared sections: "Advanced options", "Token documentation" and "Patterns" come from VVJ Core. VVJL does not offer deep linking.
  • Tokens: in the view header, footer or empty text, use [vvjl:field] or [vvjl:field:plain]. They read from the first row.
  • Theme bridges: pattern-bridge-solo and pattern-bridge-apex map Pattern colors to those themes. Other themes keep the default look.
  • Help page: read /admin/help/vvjl after you enable the module.
  • Example view: an optional view named "VVJL Example" is available at /vvjl-example. It shows 12 items per page and needs the Article content type.

Patterns

A Pattern is a ready-made design. Enable the VVJ Patterns submodule from VVJ Core, then choose a Pattern in the "Patterns" section. Choosing one replaces your layout, animation and overlay settings; "None" keeps your own. VVJL ships five:

  • Mosaic: a bento grid of photos. The tile photo grows into a dark viewer with round arrows. Five or six items read best.
  • Contact sheet: even 3:2 frames with frame numbers. The viewer is a split screen with a paper sidebar and thumbnails.
  • Reel: one sideways row of arched tiles, with a light viewer and story bars on top.
  • Prints: tilted instant prints that straighten on hover. The print grows into a viewer with a bottom bar.
  • Index: a numbered list of rows, with a black viewer and a numbered control.

Each Pattern needs the "Fields" row plugin with the image first, then a kicker and a title. After you pick a Pattern, the list headed "To finish the Pattern" shows what is left to set. In a Pattern viewer, the Left and Right arrow keys and swiping move between images.

Installation: get started in 3 steps

  1. Install the module with Composer. This also installs VVJ Core:
    composer require 'drupal/vvjl:^2.0'
  2. Enable it on the Extend page, or with Drush:
    drush en vvjl
  3. Open a view under Structure > Views, set "Format" to "Views Vanilla JavaScript Lightbox", make the first field an image and open "Settings" to set the grid and overlay.

To upgrade from VVJ 1.x, upgrade every installed VVJ module to 2.x together. Mixing 1.x and 2.x is not supported. The update enables VVJ Core and converts views saved by 1.x to the 2.x option types; it is safe to run again. The steps are on the VVJ Core page.

Requirements

  • Drupal ^11.3 || ^12
  • PHP 8.3 or later
  • VVJ Core
  • Views and Filter (both in Drupal core)

Sites on Drupal 10 or on Drupal 11.0 to 11.2, or on PHP 8.1 or 8.2, stay on VVJ 1.x.

Support and maintenance

Questions, ideas, and bug reports are welcome. Please use this project’s issue queue so discussions and solutions remain available to the Drupal community.

Maintainers monitor issues, but response times depend on availability.

Developed and maintained by Alaa Haddad of Flash Web Center, LLC.

AI disclosure: AI tools assisted with drafting and reviewing this project description. The maintainer verified the final content against the project source.

Drupal 11 · not 10 PHP 8.3

Ask your assistant about Views Lightbox - Views Vanilla JavaScript Lightbox (VVJL)

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

  • VVJ Core
  • filter Drupal core
  • views Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
17
Tracked since
Aug 2024
Latest release
1 day ago
Releases (12 mo)
7 ▲ from 4
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
2.1.0 Stable 11 PHP 8.3 Nov 29, 2026
2.1.x-dev Dev 11 PHP 8.3 Nov 29, 2026
2.0.2 Stable 11 PHP 8.3 Oct 12, 2026
2.0.1 Stable 11 PHP 8.3 Oct 6, 2026
2.0.0 Stable 11 Jul 4, 2026
2.0.x-dev Dev 11 Jul 4, 2026
1.0.9 Stable 10–11 Jan 30, 2026
1.0.8 Stable 10–11 Nov 12, 2025
1.0.7 Stable 10–11 Jun 3, 2025
1.0.6 Stable 10–11 Jun 1, 2025