I found a solution, thanks to this suggestion:
http://joomla.stackexchange.com/questio ... o-a-module
As sovainfo said it's the view.html.php
So I added this into my helper.php
Code: Select all
$dispatcher = JEventDispatcher::getInstance();
PluginHelper::importPlugin('content');
Then I added this into an existing loop:
Code: Select all
foreach ($items as &$item)
{
$item->event = new stdClass();
$item->event->beforeDisplayContent = trim(implode("\n", $results));
$results = $dispatcher->trigger('afterDisplayTitle', array('com_content.article', &$item, &$item->params, 0));
$item->event->afterDisplayTitle = trim(implode("\n", $results));
$results = $dispatcher->trigger('afterDisplayContent', array('com_content.article', &$item, &$item->params, 0));
$item->event->afterDisplayContent = trim(implode("\n", $results));
}
And now in my tmpl/default.php I can use:
Code: Select all
<?php echo $item->event->beforeDisplayContent; ?>