Navigation
JotCache Help 3.2
JotCache Help 4.0
JotCache Help 4.1 for Joomla 3.2
JotCache Help 4.2 for Joomla 2.5
JotCache Help 5.x (J3.3/J3.4)
JotCache Help 5.3 (J3.5)
JotCache Help 6.x (J3.7)
Each JC plugin consists from three files (located in directory /plugins/jotcacheplugins/<plugin_name>) :
<plugin_name>.php (plugin code) <plugin_name>.xml (plugin definition) <plugin_name>_form.php (plugin form)
PROCEDURES FOR PLUGIN DEVELOPERS
Plugin contains class as extension of JPlugin :
class plgJotcachepluginsRecache extends JPlugin
which implements method :
function onJotcacheRecache()
have to be conform to standard Joomla 2.5 plugin XML definitions.
Take care for naming of plugin :
Plugin form is used as template form included to common Recache Control page (if plugin is enabled). It is part of JotCache component opened after click on Recache toolbar buton.
At code beginning use following definitions :
defined('_JEXEC') or die('Restricted access'); JHTML::_('behavior.tooltip'); $lang = JFactory::getLanguage(); $lang->load('plg_jotcacheplugins_<plugin_name>', JPATH_ADMINISTRATOR, null, false, false);
Form tag have to be conform to following code :
<form action="<?php echo JRoute::_('index.php?option=com_jotcache'); ?>" method="post" name="adminForm_<plugin_name>" id="adminForm_<Capital_leading_character_plugin_name>"> Example : <form action="<?php echo JRoute::_('index.php?option=com_jotcache'); ?>" method="post" name="adminForm_recache" id="adminForm_Recache">
Plugin form shall contain hidden input tag with plugin recognition :
<input type="hidden" name="jotcacheplugin" value="<plugin_name>" /> Example : <input type="hidden" name="jotcacheplugin" value="recache" />