logo

This plugin is for Joomla developers. The plugin registers Lightbox2.js (https://lokeshdhakar.com/projects/lightbox2/#getting-started) package in Joomla Web Assets Manager. Then you can use it in your extensions.
To do this in your code, use:

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.

Read more

© 2024 Extly, CB - All rights reserved.