WebTolk Joomla Extensions
69 Extensions
9 Categories
271 Versions released
236550 Downloads
This plugin is for Joomla developers. The plugin registers Lightbox2.js package in Joomla Web Assets Manager. Then you can use it in your extensions.
Plugin for Joomla developers. It allows you to use Lightbox2.js anywhere in Joomla 4: in modules, components, plugins.
To do this in your code, use:
<?php
use Joomla\CMS\Factory;
$wa = Factory::getApplication()->getDocument()->getWebAssetManager();
$wa->usePreset('lightbox2')->useScript('jquery');
Ligthbox2 needs in jQuery library for work.
The plugin can be used as a dependency when developing your own extensions for Joomla 4. The plugin uses the Joomla 4 update system.