Search by

jovibarba / contao-gallery-caption-override

jovibarba

Per-image caption, alt text and title overrides for Contao's gallery content element, with a global override toggle and per-gallery GLightbox title/caption display toggles.

Package info

github.com/jovibarba/contao-gallery-caption-override

Type:contao-bundle

pkg:composer/jovibarba/contao-gallery-caption-override

Statistics

Installs: 3

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.0 2026-09-11 18:48 UTC

This package is auto-updated.

Last update: 2026-09-13 11:23:20 UTC


README

Contao 5 bundle that adds per-image caption, alt text and title overrides to the gallery content element, a global toggle for whether these overrides replace the file manager's metadata, a per-gallery toggle for showing the title/caption in the GLightbox popup, and a collapsible, wider editor for all of the above in the backend.

Requirements

  • Contao ^5.6
  • inspiredminds/contao-glightbox ^1.0

Installation

composer require jovibarba/contao-gallery-caption-override

Then run contao:migrate to add the new database columns.

Usage

On any gallery content element, the "Quellen" section now has:

  • Metadaten der Dateiverwaltung überschreiben — a checkbox that, when checked (default), applies the per-image overrides below instead of the file manager's metadata. When unchecked, the file manager's metadata is used unchanged, even if the fields below are filled in.
  • A caption, alt text and title field under each selected image's thumbnail, editable directly without leaving the content element. Leaving a field empty falls back to that file's own metadata for that value.

The "Bildeinstellungen" section additionally has two checkboxes to show or hide the title and caption specifically in the GLightbox popup, independent of whether they're shown under the thumbnail in the grid.