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.

 

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

What am I doing wrong?

eyecandy1
Beginner Modder
ranks
useravatar
Offline
1 Posts
Administrator has disabled public posting

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 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
3329 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1696
Total Polls:
6
Total Posts:
5941
Total Posts Today:
7
User Info:
 
Total Users:
5366
Newest User:
angelo3455
Members Online:
0
Guests Online:
177

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