Search by

jovibarba / contao-glightbox

jovibarba

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

Homepage

Issues

Language:JavaScript

Type:contao-bundle

pkg:composer/jovibarba/contao-glightbox

Fund package maintenance!

fritzmg

Statistics

Installs: 2

Dependents: 0

Suggesters: 0

Stars: 0

v1.1.0 2026-09-13 11:15 UTC

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.