Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod General Support
- » Virtuemart recipe help
Virtuemart recipe help
Virtuemart recipe help
I need help setting up a recipe for virtuemart. I have a virtuemart component set to frotpage and now I would like for modul to appear only on that front page and not on the categories. That means that when vistors click on whatever category the modul shuld disappear. I tried to set Meta mod to show only on the front page but since virtuemart component is assigned to show on front page it had no effect.
What can I do?
Re: Virtuemart recipe help
When you set up Virtuemart as a component on a menu, the "internal" URL of the page looks something like:
http: //example.com/index.php?option=com_virtuemart&Itemid=83
Even if it's the front page and the URL that the public sees is "http://example.com/", the internal URL contains the option and Itemid information.
When you click on any other Virtuemart link, you get a URL like:
http: //example.com/index.php?option=com_virtuemart&page=shop.product_details&flypage=flypage.tpl&product_id=1&Itemid=74
Therefore, I'd write a rule that checks to see whether $option is "com_virtuemart", and no other categories or pages have been requested.
e.g.
Code:
if ($option == "com_virtuemart" && JRequest::getVar("page") == null && JRequest::getVar("category_id") == null) return 101;
(replace 101 with the module id of the module you want to display)
Hope that helps,
Stephen
- Index
- » MetaMod
- » MetaMod General Support
- » Virtuemart recipe help
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5942
- Posts this week:
- 2
- User Info:
- Total Users:
- 7628
- Newest User:
- horlogekorting34
- Members Online:
- 1
- Guests Online:
- 164
- Online:
- horlogekorting34
Forum Legend:
Topic
New
Locked
Sticky
Active
New/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky/Active/Locked