VirtueMart Forum

VirtueMart 2 + 3 + 4 => Frontend Modules => Topic started by: guayo on November 28, 2012, 19:03:49 PM

Title: ¿How can I display a module only on the frontpage?
Post by: guayo on November 28, 2012, 19:03:49 PM
I have a module set to the home menu item, but it is being displayed on every product page.
¿How can I fix this?
¿Should I delete the module position from my joomla template and put it on the frontpage module?
Thanks in advance
Title: Re: ¿How can I display a module only on the frontpage?
Post by: PRO on November 28, 2012, 23:17:47 PM
You can edit your template module position
http://www.kaizenmediaworks.com/virtuemart-template-and-module-control

OR:
You can edit the module template

module/tmpl/default.php

place this before everything
<?php if (JRequest::getVar('view')=='virtuemart') { ?>



then this at the bottom

<?php } ?>
Title: Re: ¿How can I display a module only on the frontpage?
Post by: guayo on December 03, 2012, 20:25:44 PM
¡Thanks for your answer! Problem solved thanks to you!