Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod General Support
- » [solved] Hide slider module on...
[solved] Hide slider module on Virtuemart's product details
[solved] Hide slider module on Virtuemart's product details
Hello, i have a slider on my frontpage, and my frontpage is a Virtuemart category. My problem is that this slider is being displayed not only at the frontpage but in the product details layout related to this category as well. I need it to be displayed only at the frontpage.
I've installed your module and followed the instructions on your site carefully, but the only result i'm getting is the slider being hidden not only in product details but at the frontpage too.
This is the code i'm using:
$vm = JomGenius("virtuemart");
if ( $vm->check( "pagetype = frontpage" ) ) return 123;
It's not working, i don't know why.
This is what shows up instead of the slider if i turn on debug:
MetaMod debug info:
Module ID: 137
$option: com_virtuemart
$view: category
$id:
$Itemid: 102
$timezone: UTC
$language: es-es
$language_code: es
$language_region: es
Including modules: Ninguno
Also, non-related with the above, i'd like to know if it is possible to hide child categories from the details page with your module, or if it works only with modules.
I'm using Joomla 2.5, Virtuemart 2.0.12f and the latest Metamod version.
Any help will be very much appreciated, thanks!
18-Dec-13 02:48:26
Re: [solved] Hide slider module on Virtuemart's product details
Hi,
can you please put the following into MetaMod, then view the front page of your site and see what it displays?
$vm = JomGenius("virtuemart");
echo "pagetype is " . $vm->info("pagetype") . "<br>";
It may come up with something different to "frontpage" - but whatever it comes up with is the pagetype you need to check for in the PHP code (instead of "frontpage"). If it doesn't come up with anything, please let me know and I'll look into it further.
Lastly, MetaMod only works with modules - it can't control internal VM things like the display of child categories.
Best regards,
Stephen
Re: [solved] Hide slider module on Virtuemart's product details
Turns out page type is category. I've changed the code to
"$vm = JomGenius("virtuemart");
if ( $vm->check( "pagetype = category" ) ) return 123;
and it works wonderfully now.
Thanks a lot, Stephen, i really needed this!!! : )
- Index
- » MetaMod
- » MetaMod General Support
- » [solved] Hide slider module on...
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5944
- Posts this week:
- 2
- User Info:
- Total Users:
- 7658
- Newest User:
- carre82601
- Members Online:
- 0
- Guests Online:
- 111
- 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