Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod General Support
- » Hide module in virtuemart and joomla...
Hide module in virtuemart and joomla in the same time, how?
Re: Hide module in virtuemart and joomla in the same time, how?
Hi linhos,
can you please post the code that you're using in the MetaMod?
Also can you post a couple of URLs: one where the MetaMod is displaying correctly, and one where it is not displaying correctly?
Thanks,
Stephen
Re: Hide module in virtuemart and joomla in the same time, how?
Hi MetamodGuy follows the code that you gave me to hide the modules on virtuemart:
if ($core_genius->check("pagetype not = frontpage")) {
$vm = JomGenius("virtuemart");
if ($vm->check("pagetype = none of checkout.index#1,checkout.index#2,checkout.index#3,checkout.index#4, shopp.cart, account.index,shop.product_details") ) return 144;
}
Below is the url of the page you are working normal or the pages of virtuemart that the above code, example:
http://www.neymefreeshop.com.br/index.p … ;Itemid=65
-------------------------------------------------- ---------------------
Now the page joomla module that keeps popping up, and this page is not of virtuemart and joomla but from itself, example:
-------------------------------------------------- --------------------
http://www.neymefreeshop.com.br/index.p … ;Itemid=77
As you can see, the module filter products appear in the pages of JOOMLA, I want that same module tbm not appear in the pages of his own.
Thanks for the quick responses Metamod, your module is a success!
cheers
Re: Hide module in virtuemart and joomla in the same time, how?
Thanks for the clarification - that makes more sense now.
I think what you want is for the module to appear only on VM pages, not on other pages on the site.
In the PHP above, it only checks these:
- the front page of the site is excluded
- certain VM pages are excluded
- all other pages are included.
So let's change this to ALSO exclude any pages that are not VM:
if ( $option == "com_virtuemart" and $core_genius->check("pagetype not = frontpage") ) {
$vm = JomGenius("virtuemart");
if ($vm->check("pagetype = none of checkout.index#1,checkout.index#2,checkout.index#3,checkout.index#4, shopp.cart, account.index,shop.product_details") ) return 144;
}
Cheers,
Stephen
- Index
- » MetaMod
- » MetaMod General Support
- » Hide module in virtuemart and joomla...
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5943
- Total Posts Today:
- 1
- User Info:
- Total Users:
- 7638
- Newest User:
- moner86658
- Members Online:
- 0
- Guests Online:
- 103
- 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