Hi there,
I'm tryng to add extra fields in category using the plugin system.
I succeded to add fields after the category content.
But I would like to add a fiel just after the category title.
In my plugin, i do this :
--
function onK2AfterDisplayTitle( & $category, & $params, $limitstart) {
global $mainframe;
$plugin = & JPluginHelper::getPlugin('k2', 'matiere');
$pluginParams = new JParameter($plugin->params);
$plugins = new K2Parameter($category->plugins, '', $this->pluginName);
$output = "< h3 id="sousTitre">" . $plugins->get('sous-titre') . "< /h3>" ; return $output;
}
--
And in the template, i add this line :
--
< !-- K2 Plugins: K2AfterDisplayTitle -->
< ?php echo $this->category->event->K2AfterDisplayTitle; ?>
--
after the category title.
But it doesn't work. What did I missed ?
Thanks a lot
PS : it would be great to have the ability to post pieces of code in this forum, via a "code" tag...