DEPRECATION WARNING
This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.
Global Ajax¶
Available since version 0.3.0:
With the global ajax option enabled (plugin.tx_jhmagnificpopup.type.ajax.enableglobal) and eID for method ajax enabled (plugin.tx_jhmagnificpopup.useEidForAjaxMethod), it’s possible to open every content-link in a Magnific Popup lightbox.
To enable the lightbox for a content-link add class “mfp-ajax-link”.
Building a content-link¶
To open content by ajax in a lightbox the link requires the following additionalParams:
Param | Value | Description |
---|---|---|
eID | jh_magnificpopup_ajax | Required - do not touch this |
jh_magnificpopup[type] | reference | “reference” should be the default jh_magnificpopup[type]. “reference” is available too but should only used by jh_mafgnificpopup. Please see “Hook” below if you want to add your own type. |
jh_magnificpopup[uid] | Comma-seperated lists of tt_content uids (required for jh_magnificpopup[type]=reference). | |
jh_magnificpopup[pid] | Comma-seperated lists of tt_content pids the uids are related to (required for jh_magnificpopup[type]=reference). | |
jh_magnificpopup[hookConf] | A string or array for your own configurations, if you use a hook with your own type. |
Example¶
http://example.com/index.php?eID=jh_magnificpopup_ajax&jh_magnificpopup[type]=reference&jh_magnificpopup[uid]=1,2,14&jh_magnificpopup[pid]=1,4
Extend Ajax¶
If you want to add your own type to be opend as ajax see chapter Development->Ajax Hook