Project

General

Profile

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

Valérie Isaksen, 11/03/2011 05:38 PM

1 1 Max Milbers
h1. Hints for the use of the template system
2
3 2 Francesco Abeni
This page is for users and designers and developers, but since users of the administrator level can also get inflicted with it, we moved it to the user chapter.
4 1 Max Milbers
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 3 Max Milbers
The joomla template system is described here:
8 1 Max Milbers
* http://docs.joomla.org/Joomla!_1.5_Template_Tutorials_Project
9 6 Max Milbers
* http://docs.joomla.org/Understanding_Output_Overrides
10 5 Max Milbers
* http://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core 
11 4 Max Milbers
* http://docs.joomla.org/Layout_Overrides_in_Joomla_1.6
12 6 Max Milbers
* http://www.spiralscripts.co.uk/Joomla-Tips/using-template-overriding-with-joomla.html
13 3 Max Milbers
14 7 Valérie Isaksen
The virtuemart default shop template is overriding the joomla configurations. You can choose in the configuration the template and layout for the shop, the category and the product view and you can override these values per category and product.
15 1 Max Milbers
16 2 Francesco Abeni
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 "Rhuk_milkyway" template set as default in joomla, but you use for example the "Beez" template for categories and placed a layout for override in it, then it is not used! Because joomla looks only in the "Rhuk_milkyway" template for layouts.
17 1 Max Milbers
18
So you can use a lot different templates, but the layouts must be stored in the template which is the default of joomla.