jovibarba / contao-glightbox
Fork of inspiredminds/contao-glightbox: GLightbox options configurable in the page layout and per gallery element. Replaces the original package.
Package info
github.com/jovibarba/contao-glightbox
Language:JavaScript
Type:contao-bundle
pkg:composer/jovibarba/contao-glightbox
Fund package maintenance!
Requires
- php: >=8.1
- contao/core-bundle: ^5.3
- symfony/http-kernel: ^5.4 || ^6.4 || ^7.4
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.16
Suggests
None
Provides
None
Conflicts
None
Replaces
This package is auto-updated.
Last update: 2026-09-13 11:17:26 UTC
README
Fork von inspiredminds/contao-glightbox mit zwei Ergänzungen: GLightbox-Optionen sind im Seitenlayout konfigurierbar und pro Galerie-Element überschreibbar. Das Paket ersetzt das Original (
replace), beide dürfen nicht gleichzeitig installiert sein. Installation:composer require jovibarba/contao-glightbox
Contao GLightbox
Contao extension to integrate GLightbox. To enable, activate the js_glightbox JavaScript template in your page layout (disable any other lightbox integrations). Create your own custom template in order to customise the GLightbox options.
To use it with the modern Twig layout:
{# templates/page/layout.html.twig #} {% block body_content %} {{ parent() }} {{ include('@Contao/js_glightbox') }} {% endblock %}
Backend configuration
The most common GLightbox options can be configured per page layout in the Contao back end (section "GLightbox" in the page layout). Options left at "Default" are not passed to GLightbox, so its built-in defaults apply. Run the database migration (contao:migrate) after installing or updating the extension.