WET Lightbox FieldFormatter

Created on 22 April 2025, 6 days ago

Problem/Motivation

I'm creating a content type to use as a photo gallery. It would be nice to have a FieldFormatter with WxT that automatically formats a Media field to use Lightbox as described in the wet-boew Lightbox working example - https://wet-boew.github.io/v4.0-ci/demos/lightbox/lightbox-en.html

Steps to reproduce

I created a simple content type for this, and added a Media field with unlimited cardinality. The bulk media creation already in WxT works well, it allows me to upload multiple photos at the same time and it converts them into media entities and attached them to my field:

Adding bulk images:

Bulk media entity creation:

Bulk media added to field:

Now I don't have a field formatter to display the resulting photo gallery in a WET Lightbox.

Proposed resolution

Add a new FieldFormatter to display a simple Lightbox photo gallery, like image below.

Add settings to the FieldFormatter to allow selection of image styles, one for the small preview image and one for the large image rendered in Lightbox:

Feature request
Status

Active

Version

5.4

Component

Code

Created by

🇨🇦Canada smulvih2 Canada 🍁

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

Comments & Activities

Production build 0.71.5 2024