Mod VM ModController Documentation |
Module VM ModController ProThis module allows you to control the display of other Joomla modules on Virtuemart pages. It allows you to assign modules to Virtuemart pages (including specific flypages or browse pages), categories, and shopper groups. InstallationUpload the package file mod_vm_modcontroller_pro.zip and install as normal using the Joomla! installer. Usage
(click on the image above to view a larger version) The control parameters are used as follows:-
Virtuemart PagesThe Virtuemart pages that customers normally see are prefixed by 'shop' for the main shop pages, 'account' for customer account pages, and 'checkout' for checkout pages. The second part of the name is related to the specific page function, for example 'checkout.result' is the page that customers are redirected to after payment has been made. The main Virtuemart category page is 'shop.browse', while the main Virtuemart product flypage is 'shop.product_details'. The main customer account page is 'account.index'. If you have created any custom Virtuemart pages you should see it listed in the parameters provided it uses the 'shop', 'checkout' or 'account' prefix. Controlling the Display of More Than One ModuleYou can have as many instances of VM Modcontroller as you wish, so just use one for each module whose display you need to control. Empty ModulesIt may happen that when the module is not displaying any output, the outline of an empty module is still visible. This is due to a Joomla bug. Joomla outputs 'module chrome' which is used to surround the module and format the module display. With some chromes it does not check if there is actually any output before doing so, which produces this undesirable result. For this reason we include a file 'modules.php' which is designed to deal with this problem. If you are experiencing this issue then you need to upload the file to the site folder 'templates/system/html/modules.php' to overwrite the existing file. If you are not experiencing this problem then there is no need to do this. If your site template includes some custom chrome this may also need to be adapted to check for module content - we can advise on this if necessary. |