Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/heimrichhannot/contao-lightbox-gallery-bundle
- Owner: heimrichhannot
- License: other
- Created: 2018-06-26T09:48:34.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-06-06T13:34:01.000Z (7 months ago)
- Last Synced: 2024-09-16T16:10:07.189Z (3 months ago)
- Language: PHP
- Homepage:
- Size: 46.9 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
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
```