The Joomla! Forum ™





Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Fri Nov 03, 2006 5:36 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Jan 09, 2006 10:48 pm
Posts: 43
Hi all,

The category text is not being passed through the content mambots. I've hacked up a very dodgy solution for my immediate needs:

/components/com_content/content.php, function BlogOutput, around like 859 on this install which is Joomla 1.0.3, but I checked the latest version in SVN and it appears to be the same.

Replace the single line:
              echo $description->description;

With:

Code:
global $_MAMBOTS;
$_MAMBOTS->loadBotGroup( 'content' );
$row = new mosEmpty();
$row->text = $description->description;
$results = $_MAMBOTS->trigger( 'onPrepareContent', array( &$row, &$params, $page ), 1 );
echo $row->text;


Now I'm not handling the onBefore/onAfterDisplayContent mambots, but to me it feels like this category text is content and should be parsed as such by the mambots.

Cheers!


Top
 Profile  
 
PostPosted: Fri Nov 03, 2006 7:48 am 
User avatar
Joomla! Hero
Joomla! Hero
Offline

Joined: Thu Aug 25, 2005 5:48 pm
Posts: 2860
Location: Geneva mostly
Never was the case, content bots only work on content, not section, n ot categories, not components.
Nice hack though ;)
You should upgrade that 1.0.3 asap..

_________________
Sometimes one pays most for the things one gets for nothing.
The important thing is not to stop questioning. Curiosity has its own reason for existing. AE
http://joomla15.blog spot.com for J! 1.5 screenshots
http://www.eyezberg.com


Top
 Profile  
 
PostPosted: Fri Nov 03, 2006 12:36 pm 
User avatar
Joomla! Master
Joomla! Master
Offline

Joined: Thu Aug 18, 2005 10:41 am
Posts: 15729
Q&T Note; marking as NOT BUG, since this is expected behavior. Moving to Resolved.

_________________
Regards Robin

http://www.linkedin.com/in/robinmuilwijk - http://twitter.com/i_robin


Top
 Profile  
 
PostPosted: Thu Jan 18, 2007 11:09 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Jan 09, 2006 10:48 pm
Posts: 43
Can I ask what the rationale behind this is? To me it seems counter-intuitive; the text you enter there feels like content both to the administrator (as it's something you edit with the WYSIWYG editor that shown up in the user content area) and for users (as it shows in the content area like other content).
  When I hit this problem I had links in the category text which weren't being 'fixed' by the SEF mambot; to me, it seems odd that this text is not handled as content - I entered links like I do elsewhere on the site but behind the scenes Joomla treated this text differently to the other text I enter.

Thanks! Just looking for some feedback to help clarify things for me :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 



Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group