Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.



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


Hide Slideshow module on all pages if Frontpage is VM Frontpage SEF ON

Hide Slideshow module on all pages if Frontpage is VM Frontpage SEF ON


A read a LOT and tried like all the suggestions, still i am not able to Hide Slideshow module on all pages except on the frontpage if Frontpage is set to VirtueMart Frontpage.

I am using Joomla 2.5.14 and Virtuemart 2.0.24 and MetaMOD 3.15

I have a Slideshow module (Slideshow CK)(ID:199) unpublished, position: none

- and created a metamod modul for it,
- menu assignement - home page menu only,
- Auto-enable included modules? - modules specified by ID
- Quick module position or id include: 199
- Tried various php to the php field

$vm = JomGenius("virtuemart");
if ( $vm->check( "pagetype = frontpage" ) ) return 199;

That one is working until i turn on "Search Engine Friendly URLs" and "Use URL rewriting" in global config.

When i turn on SEO settings module shows up on virtuemart pages.

URL of the website: http://www.castlewood.hu/

I would much appreciate some help here ..

Edited By: hasznosinfo
20-Dec-13 14:44:09

Beginner Modder
1 Posts
Administrator has disabled public posting

Re: Hide Slideshow module on all pages if Frontpage is VM Frontpage SEF ON

Hi Attila,

first of all, please remove everything from the "Quick module position or id include" box. That will cause the module to show up on every page that the MetaMod module is assigned to, and you don't want that.

Can I suggest as a test, that you use the following in the PHP box:

$vm = JomGenius("virtuemart");
echo "page type is: " . $vm->info("pagetype") . "<br />";

Then go to your site front end and visit some different pages. Hopefully, only the front page of your site will show the message, but probably some other VM pages will also show the message because of the way VM uses the front page Itemid for some of the other pages.

The interesting thing will be to find out what pagetype MetaMod thinks it's on, on the front page. Will it say "frontpage" or another page type? Whatever it reports will be the one that you need to put into the PHP code that you used originally (in your forum post).

Hope that helps - at least this will help you to see what's going on. Please write back with the results and we can work from there.

Best regards,

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

3330 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
Total Topics:
Total Polls:
Total Posts:
Total Posts Today:
User Info:
Total Users:
Newest User:
Members Online:
Guests Online:


Forum Legend:

 New Sticky