Joomla 1.0 Articles
- How to create a module with DirectPHP plugin?
- How to include modules in Content item?
- How to include modules in Section/Content Description
- How to include PHP commands in Section/Content Description
- How to make plugins process Section/Category descriptions
- Include Code Listing plugin - More Tips and Techniques
- How to have DirectPHP plugin process RSS feed?
Joomla 1.5 Articles
- How to create a module with DirectPHP plugin?
- How to include modules in Content item?
- How to include modules in Section/Content Description
- How to include PHP commands in Section/Content Description
- How to make plugins process Section/Category descriptions
- Include Code Listing plugin - More Tips and Techniques
- How to have DirectPHP plugin process RSS feed?
|
How to make plugins process Section/Category descriptions (for Joomla 1.0.x)? |
| Written by kksou | ||
| Tuesday, 22 April 2008 | ||
|
In standard Joomla 1.0.x installation, only the content items get processed by the mambots/plugins. This article shows you how to make the mambots/plugins process the Section/Category descriptions too. Note: the steps below works for Joomla 1.0.x only. For Joomla 1.5.x, please refer to How to make plugins process Section/Category descriptions (for Joomla 1.5.x)?. SolutionsAll you need is to add 5 lines to make Section/Category descriptions processed by all your existing plugins that currently work with content items!
class HTML_content {
/**
* Draws a Content List
* Used by Content Category & Content Section
*/
function showContentList( $title, &$items, &$access, $id=0, $sectionid=NULL,
$gid, &$params, &$pageNav, $other_categories, &$lists, $order,
$categories_exist ) {
$title->text = $title->description;
global $_MAMBOTS;
$_MAMBOTS->loadBotGroup( 'content' );
$results = $_MAMBOTS->trigger( 'onPrepareContent', array( 1, &$title, &$params) );
$title->description = $title->text;
global $Itemid, $mosConfig_live_site;
if ( $sectionid ) {
$id = $sectionid;
}
That's it. You can try {mosloadposition}. It should now work even in Section/Category descriptions. You can also try DirectPHP plugin. You will now be able to include PHP commands in both the content items as well as Section/Category descriptions. Note
User reviews There are no user reviews yet. Note: You have to be a registered member to leave a comment. Free registration here. |
||
| < Prev | Next > |
|---|

