Return to Snippet

Revision: 33954
at October 15, 2010 03:35 by harikaram


Initial Code
// Hack to run content modules on cat description
   $article =& new JObject();
   $article->text = $this->category->description;
   $dispatcher      =& JDispatcher::getInstance();
   
   JPluginHelper::importPlugin( 'content' );
   $results = $dispatcher->trigger('onPrepareContent', array (& $article, array(), 0));
   
   $this->category->description=  $article->text;

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

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

Initial Title
Template Overide to Run Content Plugins on Category Descriptions

Initial Tags
template, joomla

Initial Language
PHP