https://github.com/fritzmg/contao-lightcase
Contao extension to integrate the Lightcase overlay.
https://github.com/fritzmg/contao-lightcase
cms contao contao-module lightbox php
Last synced: 5 months ago
JSON representation
Contao extension to integrate the Lightcase overlay.
- Host: GitHub
- URL: https://github.com/fritzmg/contao-lightcase
- Owner: fritzmg
- License: lgpl-3.0
- Archived: true
- Created: 2017-03-04T12:38:26.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-08-17T16:33:06.000Z (almost 3 years ago)
- Last Synced: 2025-12-27T06:21:58.325Z (6 months ago)
- Topics: cms, contao, contao-module, lightbox, php
- Language: JavaScript
- Homepage:
- Size: 64.5 KB
- Stars: 7
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
[](https://packagist.org/packages/fritzmg/contao-lightcase)
[](https://packagist.org/packages/fritzmg/contao-lightcase)
Contao Lightcase
=====================
Contao extension to integrate the [Lightcase](http://cornel.bopp-art.com/lightcase/) overlay.
## Usage
Simply activate the `j_lightcase` template in your page layout under _jQuery_. Do _not_ activate `j_colorbox` or `moo_mediabox` as well!
Lightcase will work with all links that use the `data-lightbox="…"` parameter. Of course you can still initialize via your own JavaScript. Customizing the options works the same way as with the `j_colorbox` template for example.
## Adjust Labels
In order to adjust the translation of the labels within your application (or to create translations for additional languages), create files in the following format:
```
translations/im_contao_lightcase..yaml
```
For example if you want to change the English and German label of the close button:
```yaml
# translations/im_contao_lightcase.en.yaml
close: Close overlay
```
```yaml
# translations/im_contao_lightcase.de.yaml
close: Overlay schließen
```
See the [API documentation](https://cornel.bopp-art.com/lightcase/documentation/#api) for the available labels.