I am sorry I get an "Article not found" using the link. So maybe I am asking here something which is described in the article.
I understood the common override and how to use it as templater, but I am developing a component with own categories (we have nested ones) and "articles".
It will be often needed that users want to use a default joomla template and just want to change the template by article or category.
It is possible to load multiple css and js, so we had the idea that it would be nice, when we could load 2 templates in one time.
My question is just how I can override the used template in the code? So that my view.html.php is looking itself which template should be used and can set it somehow. Or maybe just loads two templates. One for the general joomla and one just for the com_xyz folder.
Hmm maybe I try to explain it other round. I want to add to the categories the possibility to edit the used templates. I want to add two configuration fields, one with the general joomla template and one complemental with defining the extra doms used by the component.
We already thought about to add every of our categories to the joomla ones and just add an extra edit possibility to the category edit view. Afaik J1.6 will support nested categories also, so maybe we should use the joomla ones.
I dont know. At the end I am just looking how I can set my own template in the view.html.php
BTW: I think the right link is now http://docs.joomla.org/Understanding_Output_Overrides
PS: YEah, I found the simpel solution I was looking for, $template is just something like beez
$mainframe = JFactory::getApplication();
Now I have only the question, how I can do an override of the override (loading two templates in one time, sounds strange in fact this is already done (template set overrides the default),.. so I look for a way to load three templates at once)