fritzmg/contao-lightcase

Contao extension to integrate the Lightcase overlay.

Installs: 5 517

Dependents: 0

Suggesters: 0

Security: 0

Stars: 8

Watchers: 2

Forks: 2

Open Issues: 0

Language:JavaScript

Type:contao-module

2.2.0 2019-12-01 10:07 UTC

This package is auto-updated.

Last update: 2020-07-30 01:32:08 UTC


README

Contao Lightcase

Contao extension to integrate the 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 image size

By default Lightcase shows the image with a maxHeight of 500 pixels and a maxWidth of 800 pixels.

You can change these values by creating a custom j_lightcase template and adjusting the content as follows:

$this.lightcase({
  attr: 'data-lightbox',
  slideshow: true,
  useAsCollection: c && $('[data-lightbox="'+c+'"]').length > 1,
  showCaption: false,,
  maxWidth: 1920,
  maxHeight: 1920
});