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  [ 2 posts ] 
Author Message
PostPosted: Wed Jun 13, 2012 4:56 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri May 25, 2012 9:43 pm
Posts: 13
onContentBeforeDisplay($context, &$article, &$params, $limitstart = 0)

I want to do some funkiness on the actual article page, but this is being called on the cat page which lists about 5 articles, and I do not want to do my funking on the cat pages.

Any ideas?

Only thing I can see, is the cat page doesn't provide the $article->read_more link where as the actual article page does, but it doesn't jive me right to be using this as my cat page detector.


Top
 Profile  
 
PostPosted: Wed Jun 13, 2012 5:03 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri May 25, 2012 9:43 pm
Posts: 13
ok, on further investigations, it seems cat pages do not pass in an article obj with the asset_id set, whereas the article pages do.

Not sure if this is the best way, but seems to work in my (limited) testing


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



Who is online

Users browsing this forum: rcarey and 6 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