The Joomla! Forum ™



Forum rules


Please use the mailing list here: http://groups.google.com/group/joomla-dev-general rather than this forum.



Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Content plugin
PostPosted: Tue Mar 27, 2012 9:48 pm 
User avatar
Joomla! Explorer
Joomla! Explorer

Joined: Sat Dec 06, 2008 7:07 pm
Posts: 281
Hi.
I am developing a content plugin. In this plugin I implementing "onPrepareContent" and "onContentPrepare" event. I gues each one of these events are raised depenging on Joomla version to change the content of an article. It could be used to hide e-mails, for example.
Anyway, the plugin is working fine but only in single article view. I would like it to work also for category list or category blog.
Any ideas?
Thanks in advanced.

_________________
http://www.ratmilwebsolutions.com


Top
 Profile  
 
 Post subject: Re: Content plugin
PostPosted: Thu Mar 29, 2012 9:09 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Sep 16, 2011 11:04 am
Posts: 18
You're right. onPrepareContent is triggered by Joomla 1.5 as where onContentPrepare is triggered by Joomla 1.6 and later.

Both should be functioning in category list and category blog views. I just tested my plugin which uses both events as well and it works when using the category blog view.


Top
 Profile  
 
 Post subject: Re: Content plugin
PostPosted: Thu Mar 29, 2012 10:03 pm 
User avatar
Joomla! Explorer
Joomla! Explorer

Joined: Sat Dec 06, 2008 7:07 pm
Posts: 281
Well, it was me who had the problem.
Thanks anyway.

_________________
http://www.ratmilwebsolutions.com


Top
 Profile  
 
 Post subject: Re: Content plugin
PostPosted: Fri Mar 30, 2012 7:45 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Sep 16, 2011 11:04 am
Posts: 18
I'm not sure that I understand your reply. Have you solved the issue in the meantime, or do you still have an issue with your new development. In the latter case I'd like to help you out, though I might have misunderstood the issue you are having.


Top
 Profile  
 
 Post subject: Re: Content plugin
PostPosted: Fri Mar 30, 2012 12:31 pm 
User avatar
Joomla! Explorer
Joomla! Explorer

Joined: Sat Dec 06, 2008 7:07 pm
Posts: 281
I solved it.
Thank you very much. It was me who had the wrong concept.
The problem was that when displaying the article in category blog, the article id was not available.

_________________
http://www.ratmilwebsolutions.com


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



Who is online

Users browsing this forum: No registered users and 7 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