Download the PHP package fritzmg/contao-magnific-popup without Composer
On this page you can find all versions of the php package fritzmg/contao-magnific-popup. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fritzmg/contao-magnific-popup
More information about fritzmg/contao-magnific-popup
Files in fritzmg/contao-magnific-popup
Package contao-magnific-popup
Short Description Magnific Popup lightbox for Contao
License GPL-2.0
Homepage http://www.inspiredminds.at
Informations about the package contao-magnific-popup
Contao Magnific Popup
Contao extension to integrate the Magnific Popup overlay.
Usage
Simply activate the j_magnific_popup
template in your page layout under jQuery. Do not activate j_colorbox
or moo_mediabox
as well!
The Magnific Popup will work with all links that use the data-lightbox="..."
parameter. Of course you can still initialize and manipulate the Magnific Popup via your own JavaScript.
Customizing
If you want to use your own custom parameters, simply create your own j_magnific_popup
template and insert your custom options there. For example, if you want to enable the zoom feature of Magnific Popup:
Refer to the Magnific Popup Documentation for all available parameters.
Types
By default, the extension defines the type for all Magnific Popup instances as image
. You can set any of the types supported by Magnific Popup through several ways:
-
through the
data-lightbox
parameter itself, e.g.You can still also define a custom grouping name anywhere in the parameter:
- by using your own Magnific Popup initialisation
- by setting the type globally through the options in your own
j_magnific_popup
template
Additional Parameters
To support some compatibility with the old lightbox parameters of Contao, you can also define the width and height of the iframe popup like so:
All versions of contao-magnific-popup with dependencies
contao/core-bundle Version ~3.0 || ~4.2
contao-community-alliance/composer-plugin Version ~2.4 || ~3.0