diff --git a/components/com_content/views/category/view.html.php b/components/com_content/views/category/view.html.php index 5763b33053640..b35421ccc7951 100644 --- a/components/com_content/views/category/view.html.php +++ b/components/com_content/views/category/view.html.php @@ -74,6 +74,9 @@ function display($tpl = null) $numIntro = $params->def('num_intro_articles', 4); $numLinks = $params->def('num_links', 4); + $dispatcher = JDispatcher::getInstance(); + JPluginHelper::importPlugin('content'); + // Compute the article slugs and prepare introtext (runs content plugins). for ($i = 0, $n = count($items); $i < $n; $i++) { @@ -87,10 +90,9 @@ function display($tpl = null) $item->event = new stdClass(); - $dispatcher = JDispatcher::getInstance(); - - $item->introtext = JHtml::_('content.prepare', $item->introtext, '', 'com_content.category'); - + $item->text = $item->introtext; + $dispatcher->trigger('onContentPrepare', array('com_content.category', &$item, &$item->params, 0)); + $results = $dispatcher->trigger('onContentAfterTitle', array('com_content.article', &$item, &$item->params, 0)); $item->event->afterDisplayTitle = trim(implode("\n", $results)); diff --git a/components/com_content/views/featured/view.html.php b/components/com_content/views/featured/view.html.php index 93c14a1ff57b6..65a6e909e7899 100644 --- a/components/com_content/views/featured/view.html.php +++ b/components/com_content/views/featured/view.html.php @@ -55,6 +55,9 @@ function display($tpl = null) $numIntro = $params->def('num_intro_articles', 4); $numLinks = $params->def('num_links', 4); + $dispatcher = JDispatcher::getInstance(); + JPluginHelper::importPlugin('content'); + // Compute the article slugs and prepare introtext (runs content plugins). foreach ($items as $i => & $item) { @@ -68,9 +71,8 @@ function display($tpl = null) $item->event = new stdClass(); - $dispatcher = JDispatcher::getInstance(); - - $item->introtext = JHtml::_('content.prepare', $item->introtext, '', 'com_content.featured'); + $item->text = $item->introtext; + $dispatcher->trigger('onContentPrepare', array('com_content.featured', &$item, &$item->params, 0)); $results = $dispatcher->trigger('onContentAfterTitle', array('com_content.article', &$item, &$item->params, 0)); $item->event->afterDisplayTitle = trim(implode("\n", $results));