VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Development & Testing => Topic started by: d0ublezer0 on May 16, 2012, 07:32:30 AM

Title: mod_virtuemart_category and template overrides
Post by: d0ublezer0 on May 16, 2012, 07:32:30 AM
mod_virtuemart_category does not uses template overrides, such as alternative templates, defined in \templates\my_template\html\mod_virtuemart_category\ in module settings i see only templates, stored in \modules\mod_virtuemart_category\tmpl\

2.0.7b
Title: Re: mod_virtuemart_category and template overrides
Post by: d0ublezer0 on May 16, 2012, 07:41:09 AM
And another question - it is possible to include all-levels of categories on this modeule? Not only 2nd level?
Title: Re: mod_virtuemart_category and template overrides
Post by: archos on May 16, 2012, 09:26:54 AM
Maybe I miss something but if you want to override the view concerning the category you have to copy paste and modify the defaul.php file related to the category then place it on your template folder:
your_template\html\com_virtuemart\category
Title: Re: mod_virtuemart_category and template overrides
Post by: d0ublezer0 on May 16, 2012, 10:50:53 AM
No, i talking about module templating
Title: Re: mod_virtuemart_category and template overrides
Post by: patrik60 on May 16, 2012, 11:02:24 AM
It works:

\templates\my_template\html\mod_virtuemart_category\...

... = override either all.php, current.php or default.php

It depends of the selection you make in the module.
Title: Re: mod_virtuemart_category and template overrides
Post by: d0ublezer0 on May 21, 2012, 15:03:13 PM
Heh. try to create new template file in this dir?
Title: Re: mod_virtuemart_category and template overrides
Post by: d0ublezer0 on May 22, 2012, 06:33:05 AM
Alternative templates (eg, my_template.php) will appear in your selection list in module backend only if those files are located in the folder:
\modules\mod_virtuemart_category\tmpl\
Title: Re: mod_virtuemart_category and template overrides
Post by: patrik60 on May 22, 2012, 16:29:00 PM
QuoteHeh. try to create new template file in this dir?

Just copy one of the template files from \modules\mod_virtuemart_category\tmpl\ to \templates\my_template\html\mod_virtuemart_category\ and modify it. Then you need to select the modified in the module in the BE.
Title: Re: mod_virtuemart_category and template overrides
Post by: d0ublezer0 on June 05, 2012, 07:08:30 AM
I know about it. However, my post about something else. I was trying to say that the template files, which differ by the names of the files bundled will not be used.