.. ================================================== .. FOR YOUR INFORMATION .. -------------------------------------------------- .. -*- coding: utf-8 -*- with BOM. .. include:: ../../Includes.txt .. _developerCorner_AjaxHook: Ajax Hook ========= (Available since version 0.3.0) Use this hook if you want to add your own type to be opend as ajax lightbox. (See documentation of EXT:jh_magnificpopup) for more information about usage of this hook. To test the provided example create a new content element of type "text" and add these html lines after klicking "Toggle text mode". Or create a new content element of type "HTML" and add these lines: .. code-block:: html

hookexample without hookConf

hookexample with hookConf as String

hookexample with hookConf as Array

The static “Magnific-Popup – Content Element (jh_mapgnificpopup)” is required in your template to use this example, the setting "magnificpopup.type.ajax.enableglobal" in Constant Editor is required to be set (true). Files created or modified for this hook (in EXT:jh_magnificpopup_hookexamples): * ext_localconf.php (modified) * Classes/Hooks/EidTypeHook.php (created)