Posted By

harikaram on 10/15/10


Tagged

template joomla plugins overrides


Versions (?)

Template Overide to Run Content Plugins on Category Descriptions


 / Published in: PHP
 

URL: http://forum.joomla.org/viewtopic.php?f=469&t=250173

File: /template/[mytemplate]/html/com_content/category/blog.php page...

  1. // Hack to run content modules on cat description
  2. $article =& new JObject();
  3. $article->text = $this->category->description;
  4. $dispatcher =& JDispatcher::getInstance();
  5.  
  6. JPluginHelper::importPlugin( 'content' );
  7. $results = $dispatcher->trigger('onPrepareContent', array (& $article, array(), 0));
  8.  
  9. $this->category->description= $article->text;

Report this snippet  

You need to login to post a comment.