Project

General

Profile

Hints for the use of the template system » History » Version 1

Max Milbers, 02/28/2011 06:23 PM

1 1 Max Milbers
h1. Hints for the use of the template system
2
3
This page is for users and designers and developers, but since users of the administrator level can also get inflicted with it, we sorted it to the user chapter.
4
5
The new template system of virtuemart allows fine grained overrides for each category and product. Even the views can have different templates. We did not implement our own template system, it is based upon what is already there. So we have the joomla template system and some methods to overwrite, but this leads to some limitations.
6
7
The virtuemart default shop template is overriding the joomla configurations. You can choose in the configuuration the template and layout for the shop, the category and the product view and you can override these values per category and product.
8
9
The problem behind this construction is that the joomla template override system does only work for the template loaded by joomla. So when you have the milkyway plugin set as standard in joomla.
10
But you use for exampel the beez template for categories and placed an layout for override in it,... then it is not used! Because joomla looks only in the milkyway template for layouts.
11
12
So you can use a lot different templates, but the layouts must be stored in the template which is the default of joomla.