heimseiten / contao-lightgallery-js-bundle
Fügt die lightgallery.js (https://github.com/sachinchoolur/lightgallery.js) mit Videosupport hinzu. Um einen anderen Inhalt in der Modal-Box darzustellen muss dem Textelement indem der Link ist die Klasse html_modal gegeben werden. Commercial licencing: https://sachinchoolur.github.io/lightgallery.j
Package info
github.com/heimseiten/contao-lightgallery-js-bundle
Type:contao-bundle
pkg:composer/heimseiten/contao-lightgallery-js-bundle
Requires
- contao/core-bundle: ^4.4
Requires (Dev)
- contao/easy-coding-standard: ^3.0
- contao/manager-plugin: ^2.3
- contao/test-case: ^4.0
- phpunit/phpunit: ^8.4
- symfony/http-client: 4.4.*
- symfony/phpunit-bridge: 4.4.*
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Adds the lightgallery.js with video support. To display other content in the modal box, the text element containing the link must be given the class html_modal.
The trigger for the iframe, eg. for YouTube is a[target="lightbox"]. For example, the following could be added to the be_tinyMCE.html5 in the templates directory:
target_list: [ { title: 'same window', value: '' }, { title: 'new window', value: '_blank' }, { title: 'open in lightbox', value: 'lightbox' }, ],
This will then allow you to select “open in lightbox” in the “open link in…” field in the editor. Commercial licensing: https://sachinchoolur.github.io/lightgallery.js/docs/license.html
Fügt die lightgallery.js (https://github.com/sachinchoolur/lightgallery.js) mit Videosupport hinzu. Um einen anderen Inhalt in der Modal-Box darzustellen muss dem Textelement indem der Link ist die Klasse html_modal gegeben werden.
Der Trigger für das iframe, also bspw. für Youtube ist a[target="lightbox"] . Es könnte bspw. folgendes in der be_tinyMCE.html5 im templates Verzeichnis hinzugefügt werden:
target_list: [ { title: 'same window', value: '' }, { title: 'new window', value: '_blank' }, { title: 'open in lightbox', value: 'lightbox' }, ],
Damit kann dann im Editor im "Link öffnen in ..."-Feld "in Lightbox öffnen" ausgewählt werden.
Commercial licencing: https://sachinchoolur.github.io/lightgallery.js/docs/license.html