VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: jaimin on January 24, 2013, 09:27:51 AM

Title: Create multiple category layout for diffetent category level
Post by: jaimin on January 24, 2013, 09:27:51 AM
Hello,

I want to create different category layouts for different category, for example.

Layout 1 for first level category.
Layout 2 for second level category

Please let me know how can I achieve this.

Thanks
Title: Re: Create multiple category layout for diffetent category level
Post by: K&K media production on January 27, 2013, 13:56:50 PM
Hi

copy the file

components/com_virtuemart/views/category/tmpl/default.php

to

templates/your_template/html/com_virtuemart/category/default.php

and rename it (for example secondLevel.php)

make your layout changes

go to category configuration in vm BE and choose your second level category

go to details at the bottom and choose the file secondLevel for category loayout


Regards,
Maik