Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod Pro
- » MetaMod Pro General Support
- » MetaMod Pro Virtuemart Categories Layout
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)
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
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
Re: MetaMod Pro Virtuemart Categories Layout
- Index
- » MetaMod Pro
- » MetaMod Pro General Support
- » MetaMod Pro Virtuemart Categories Layout
Board Info
- Board Stats:
- Total Topics:
- 1699
- Total Polls:
- 6
- Total Posts:
- 5967
- Total Posts Today:
- 2
- User Info:
- Total Users:
- 8028
- Newest User:
- musial8334
- Members Online:
- 0
- Guests Online:
- 129
- 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