Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod General Support
- » Hide module from some pages of 2...
Hide module from some pages of 2 different components
Hide module from some pages of 2 different components
Hi,
first wanna say thanks for this wonderful thing which is metamod! its a really great and helpful module.
Im quite new with this. I would like to hide a module from the component user on reset and remind pages so i tried this :
if ( ! (
$option == 'com_user'
and $view == 'reset'
or $view == 'remind'
) ) return 110;
which is working like expected!
but i also wanted to hide this module from the registration page of virtuemart.
I tried this apart from the first code :
$vm = JomGenius("virtuemart");
if ( $vm->check( "pagetype not = shop.registration" ) ) return 110;
which is working fine too!
So im wondering if its possible to mix the 2 things? how can i proceed?
thanks
Re: Hide module from some pages of 2 different components
I'd do it like this:
$vm = JomGenius("virtuemart");
if ( ! // negate the following:
(
( $option == 'com_user'
and ( $view == 'reset' or $view == 'remind' ) )
or
( $vm->check( "pagetype = shop.registration" ) )
)
) return 110;
- Index
- » MetaMod
- » MetaMod General Support
- » Hide module from some pages of 2...
Board Info
- Board Stats:
- Total Topics:
- 1699
- Total Polls:
- 6
- Total Posts:
- 5967
- Total Posts Today:
- 2
- User Info:
- Total Users:
- 8021
- Newest User:
- shrutihassan193
- Members Online:
- 0
- Guests Online:
- 134
- 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