VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: d0ublezer0 on January 23, 2014, 21:48:11 PM

Title: [Possible bug] mod_virtuemart_category template overrides
Post by: d0ublezer0 on January 23, 2014, 21:48:11 PM
If we create file:
templates/current_template/html/mod_virtuemart_category/somefile.php

we will not see it in the list of available layouts in the backend, when edit module parameters
however, if you put the file in the
modules/mod_virtuemart_category/tmpl/somefile.php

it will appear in the select list
Title: Re: [Possible bug] mod_virtuemart_category template overrides
Post by: jenkinhill on January 23, 2014, 23:49:44 PM
This is a Joomla issue. Joomla module overrides (in yourtemplate/html)  must use the name of a view file already in the module tmpl directory. Normally there is only one default.php view file. They are not as flexible as component overrides. It may be that all you need to do is add the file.php name into the module's .xml file but I have not tried this.