I am trying to hide a module from k2 item page. I have a menu which was linked to a k2 category and on k2 category page there is module assigned. but i dont want to show the module in linked k2 category item.
please tell me if you have any idea
add on top of your index.php
<?php $view = $_REQUEST['view']; ?>
<?php $option = $_REQUEST['option']; ?>
find your module and add the option and view
<?php if ($this->countModules( 'your_mod_position' ) && $option=='com_k2' && $view=='itemlist') : ?>
<jdoc:include type="modules" name="your_mod_position" />
<?php endif; ?>
Login as Joomla Administrator and go to the Module Manager. Locate the module and look in the lower-left of the screen where you can assign which pages you want the module to appear.
If Edward's solution doesn't work for your scenario, try Advanced Module Manager . It will let you assign or remove the module from specific pages and/or their children. It-s very flexible.