Problem/Motivation

Custom captions and descriptions in the GLightbox image and responsive-image formatters are limited to 128 characters by Drupal's textfield default. This is too short for captions combining several tokens.

Steps to reproduce

  1. Open the settings for an image field using the GLightbox or GLightbox Responsive formatter.
  2. Select Custom (with tokens) for Caption or Caption description.
  3. Try to enter text or a token pattern longer than 128 characters.

Proposed resolution

Use textareas for both settings in both formatters. Stored values remain strings.

The equivalent remote-video proposal is #3628605.

Local testing

With the locally prepared change, browser checks on Drupal 11.4.8 confirm both inputs retain 740 characters in display and Views-style forms, for both formatters.

Remaining tasks

Review the MR (verify saving, reopening and rendering longer captions and descriptions) then merge MR.

Issue fork glightbox-3628610

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

nick hope created an issue. See original summary.

nick hope’s picture

Assigned: nick hope » Unassigned
Issue summary: View changes
Status: Needs work » Needs review

levmyshkin made their first commit to this issue’s fork.

levmyshkin’s picture

I need to check it for images inside Media, Media inside Paragraph, Paragraph in inside Paragraph and other variations.

levmyshkin’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

levmyshkin’s picture

Status: Fixed » Closed (fixed)