How to hide the module that assigned to category page from product page?

28.09.2016 15:48
#1
aminmix
Joomshopping forum user no avatar
Name: Amin
17.02.2013
Posts: 11
Quote
How to hide the module that assigned to category page from product page?

Hi
I have assigned a Joomla 3 module to a joomla category page in a template position. The module exists in that category page but this module is visible in all of products page in that category.
How can i put a module just in a category page and prevent the module from existing in product detail pages.


Joomla: 3.4.5
JoomShopping: 4.11.1
 
28.09.2016 16:02
#2
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 19626
Quote
Aw: How to hide the module that assigned to category page from product page?

add code in your template (example position-1 )

<?php if (JRequest::getVar('controller')!='product'){?>
<jdoc:include type="modules" name="position-1" />
<?php }?>

 
28.09.2016 16:29
#3
aminmix
Joomshopping forum user no avatar
Name: Amin
17.02.2013
Posts: 11
Quote
Aw: How to hide the module that assigned to category page from product page?

Good solution , Thank you

 


Copyrights MAXXmarketing GmbH. Alle Rechte vorbehalten
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.