I want a link to a specific article on my site to appear on the page only if a specific category is in the view.
For eg: I have a category called FBrand. When someone is on the category page (viewing the category blog of that category), I wan’t the article “List of FBrand Shops” on the page in a Custom HTML module in the form of an advertisement.
What I don’t know is how to check the condition of the category by the name or slug, like in wordpress: if( is_category( 'FBrand' ) ): This is because the id of the category could be different in the production environment.
Take a look at this excellent extension:
http://extensions.joomla.org/extensions/access-a-security/modules-management/3391
Metamod allows you to display modules based on all kinds of variables which should include the category slug. Check out http://www.metamodpro.com/jomgenius/parameters for all the options.