heimrichhannot/contao-lightbox-gallery-bundle
最新稳定版本:2.4.2
Composer 安装命令:
composer require heimrichhannot/contao-lightbox-gallery-bundle
包简介
This bundle offers a contao extension for lightbox-gallery based on mcstudios/glightbox
README 文档
README
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.
<div class="gallery"> <a href="img/2-1.jpg" data-caption="Image caption" data-lightbox="193910782" title="Title"> <img src="img/thumbnails/2-1.jpg" alt="First image"> </a> <figcaption class="caption">Caption</figcaption> <a href="img/2-2.jpg" data-lightbox="193910782"> <img src="img/thumbnails/2-2.jpg" alt="Second image"> </a> ... </div>
统计信息
- 总下载量: 2.71k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0-or-later
- 更新时间: 2018-07-03