The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Fri May 06, 2011 9:23 am 
User avatar
Joomla! Intern
Joomla! Intern

Joined: Sun Jun 10, 2007 6:42 am
Posts: 77
Location: Tashkent
Hello - need to show one module in articles of one category, but jdevelopers write joomla so, that modules binded to menu items(not categories) - and current situation that-
all new articles(from differ cat..s) published in main page and this module not bindet to them(for other cat..s he must be hidden)
and site has topmenu - type - table of categories - so needed module also cant be binded.

So i has idea - place this module on all pages of site, and in his code check article from what category current opened - if needed - then code shown else nothing to show

Something like what - if (($task='com_content')&&($article_cat=2)) echo...

Question - how write whis check in module ?

_________________
BeAlpha.com


Top
 Profile  
 
PostPosted: Wed May 02, 2012 7:44 pm 
Joomla! Intern
Joomla! Intern

Joined: Wed Jul 20, 2011 7:02 pm
Posts: 95
As you said, a page is tied to a menu, not a category - unless it's a category blog. In which case the catid is available - as shown below:
Code:
$app = &JFactory::getApplication();
$catID = $app->input->get('catid');


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



Who is online

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