Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.

helpme

 

Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.

 

[solved] Do not show module in view

[solved] Do not show module in view

Hi,

I need to show the module 152 in the $view: categorydetail and must be hide in $view: eventdetail but I can´t do it. Maybe you can help me.

This is my debug info:

Module ID: 161
$option: com_eventsnova
$view: categorydetail
$id:
$Itemid: 145
$timezone: UTC
$language: es-es
$language_code: es
$language_region: es
Including modules: 152

Module ID: 161
$option: com_eventsnova
$view: eventdetail
$id:
$Itemid: 145
$timezone: UTC
$language: es-es
$language_code: es
$language_region: es
Including modules: 152

Thanks in advance,

alxcre
Beginner Modder
ranks
useravatar
Offline
2 Posts
Administrator has disabled public posting

Re: [solved] Do not show module in view

Hi,

try this:

if ($option == "com_eventsnova" and $view == "categorydetail") return 152;

Then you also need to remove "152" from the "quick module position or id include" box if you have it in there. Just leave that box blank,

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3314 Posts
User info in posts
Administrator has disabled public posting

Re: [solved] Do not show module in view

Thanks, it works perfect!!

alxcre
Beginner Modder
ranks
useravatar
Offline
2 Posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1685
Total Polls:
6
Total Posts:
5912
Total Posts Today:
4
User Info:
 
Total Users:
11504
Newest User:
toko solo
Members Online:
0
Guests Online:
162

Online: 
There are no members online

Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked