Hi,
I would like to use plugins in the tag-view (SIGpro and Allvideos). I created an override for tag.php and altered the foreach loop like this:But it does not work. My output is just {gallery}60{/gallery} , on other views (item.php, category_item.php) it is working perfecly.
I'm not sure if I need to use K2AfterDisplayContent. Does anybody know where or how the plugins need to be loaded ?
K2 v 2.6.9, Joomla 3.4.1
I would like to use plugins in the tag-view (SIGpro and Allvideos). I created an override for tag.php and altered the foreach loop like this:
<?php if(count($this->items)): ?>
<?php foreach($this->items as $item): ?>
<?php $dispatcher = JDispatcher::getInstance();
JPluginHelper::importPlugin('k2');
$results = $dispatcher->trigger('K2AfterDisplayContent', array(&$item, &$params, &$limitstart));
$this->event->K2AfterDisplayContent = trim(implode("\n", $results)); ?>
<?php echo $item->introtext; ?>
<?php echo $item->gallery; ?>
<?php endforeach; ?>
<?php endif; ?>I'm not sure if I need to use K2AfterDisplayContent. Does anybody know where or how the plugins need to be loaded ?
K2 v 2.6.9, Joomla 3.4.1
