Rostislav Palivoda
JPluginHelper::importPlugin('content');
$tmp_row->text = JResponse::getBody();
$tmp_params = new JParameter(null);
$mainframe->triggerEvent('onMap', array( &$tmp_row, &$tmp_params ), true );
$mainframe->triggerEvent('onPrepareContent', array( &$tmp_row, &$tmp_params ), true );
JResponse::setBody($tmp_row->text);
exactly after the:
...
// trigger the onAfterRender events
JDEBUG ? $_PROFILER->mark('afterRender') : null;
$mainframe->triggerEvent('onAfterRender');
This does not work in Joomla latest version, please do not hack Joomla core and use a module instead, like: http://extensions.joomla.org/extensions/edition/custom-code-in-modules/4175
Thanks
