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.

 

MetaMod Pro Virtuemart Categories Layout

MetaMod Pro Virtuemart Categories Layout

Hello,

I've been using metamod with the following recipe to show modules only the frontpage of virtuemart.

$vm = JomGenius("virtuemart");
if ( $vm->check( "pagetype = frontpage" ) ) return "104,105,107,108,109,110,111,106";

I have now changed my menu type to the 'virtuemart categories layout' and cant get a recipe to work. Looking through the page type paramaters i dont see the virtuemart categories layout listed.

I need to modify the above recipe so that my modules only show on the virtuemart categories layout page please. Is it possible with metamod?

FYI im running the latest metamod with pro and joomla 2.5 with virtuemart 2 (all latest releases)

gfxpixeldesigns
Beginner Modder
ranks
useravatar
Offline
4 Posts
Administrator has disabled public posting

Re: MetaMod Pro Virtuemart Categories Layout

Can you please try the following, which will tell you the page type that JomGenius detects for the current page:

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


Then view the page in question and see what it shows on the front end. Whatever type it shows is the one to test for in the PHP code instead of "frontpage".

If it doesn't come up with anything, please let me know and I'll test this further.

Best regards,
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
3328 Posts
User info in posts
Administrator has disabled public posting

Re: MetaMod Pro Virtuemart Categories Layout

Thanks Stephen,

I've added

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

which results in

Page type is:

so it doesnt appear to be returning anything unfortunately.

To further explain, i'm using the menu item type "VirtueMart Categories Layout", it should be the second option listed under the virtuemart heading directly after shopping cart.

Hopefully its not too much trouble for you.

Kind Regards,
Mark

gfxpixeldesigns
Beginner Modder
ranks
useravatar
Offline
4 Posts
Administrator has disabled public posting

Re: MetaMod Pro Virtuemart Categories Layout

Hi Mark,

can you turn on MetaMod's "advanced debug" mode, and post the output that appears on the page in question?

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

Board Info

Board Stats:
 
Total Topics:
1686
Total Polls:
6
Total Posts:
5933
Total Posts Today:
7
User Info:
 
Total Users:
4432
Newest User:
kinggambling14
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