Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/heimrichhannot/contao-lightbox-gallery-bundle

This bundle offers a contao extension for lightbox-gallery based on mcstudios/glightbox.
https://github.com/heimrichhannot/contao-lightbox-gallery-bundle

Last synced: about 1 month ago
JSON representation

This bundle offers a contao extension for lightbox-gallery based on mcstudios/glightbox.

Awesome Lists containing this project

README

        

# Contao Lightbox Gallery Bundle

[![](https://img.shields.io/packagist/v/heimrichhannot/contao-lightbox-gallery-bundle.svg)](https://packagist.org/packages/heimrichhannot/contao-lightbox-gallery-bundle)
[![](https://img.shields.io/packagist/dt/heimrichhannot/contao-lightbox-gallery-bundle.svg)](https://packagist.org/packages/heimrichhannot/contao-lightbox-gallery-bundle)

This bundle offers a contao extension for lightbox-gallery based on mcstudios/glightbox.

## Install

Install with composer or contao manger:

```
composer require heimrichhannot/contao-lightbox-gallery-bundle
```

## Usage

This bundle works out-of-the-box with contao galleries.

### Encore bundle

If you're using this bundle with encore bundle, assets are blocked by default.
For content elements where fullsize option is checked, the assets are added automatically.

### Extended usage

To add images to an gallery define an unique data lightbox id for the elements.
Each a tag must have the same data lightbox id to be in the same gallery.

To add an title to the gallery simply add a title attribute to the a tag.
If you want to add a caption add an figcaption element after the a tag.

```html


```