In Joomla v3, I want to do the following:
'countModules' the module with the following, to see if a module is assigned:
<?php if ($this->countModules('right')) : ?>
But I also only want to show the module position on article pages only, not category blog pages using the below:
<?php if( JRequest::getVar( 'view' ) == 'article' ): ?>
How do I put both of the above IF's into 1 statement around the following so that the module position doesn't show & the div is removed only on the category blog page (but shows on article pages):
<section class="sidebar right-sidebar">
<jdoc:include type="modules" name="right" style="standard" />
</section>