Cant get module to display on front page only

Cant get module to display on front page only

Hi,

I am using j3 with vm3
I am trying to get a module to display on just the VM front page. The module I am wanting to display I have tried with it published and unpublished.

I am using the code:

$vm = JomGenius("virtuemart"); // need this at the start of every rule
if ( $vm->check( "pagetype = frontpage" ) ) return 961;
/* replace XXX with the module id or position you want
* to display <em>only</em> on the front page of VirtueMart
*/

But the HTML module is behaving as it normally would. ie, displays on all pages within VM

Re: Cant get module to display on front page only

Hi eyecandy1,

Just to check your setup, can you confirm the following:

1 - you have nothing in the "quick module id or position include" box in MetaMod
2 - the MetaMod is published and set to a valid module position
3 - the MetaMod is assigned to some or all pages
4 - the "target module" (#961) is unpublished or set to menu items:none or set to a non-existent module position.

If all those are in place then the module should not show up on any pages except the "front page" VM page. If it continues to show up then we can check the functioning of the "frontpage" detection and ensure that's working properly.

Cheers,
Stephen

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