jovibarba / contao-gallery-caption-override
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
Requires
- php: ^8.1
- contao/core-bundle: ^5.6
- inspiredminds/contao-glightbox: ^1.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
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.