Forums / Setup & design / Template override
Salvatore Guarino
Monday 25 July 2005 2:34:14 am
I want to create some template override for a new class, that I've just created duplicating the product class.
1st question: it's possible to assign the same templates ovverride of the product class to this new class? If yes, how?
2nd question: if I create overrides from the admin interface, i cannot put the new override templates in the same directory of the product override templates (i.e. /design/corporate/override/templates/full/). I can only save the new templates in the "/design/corporate/override/templates" and not in subdirectories. Is there a simpy way to do it?
Thx,
Salvatore
Ćukasz Serwatka
Tuesday 26 July 2005 4:14:46 am
Ad.1
Add in override.ini.append.php file
[product_full] Source=node/view/full.tpl MatchFile=full/product_full.tpl Subdir=templates Match[class]=20 [second_product_full] Source=node/view/full.tpl MatchFile=full/product_full.tpl Subdir=templates Match[class]=21
Of cousre this is example and you will have to change class id to correct. The trick is with using the same file MatchFile=full/product_full.tpl but with different matching and name in []
Ad.2
When you using admin interface for creating templates, new template files are stored in design/corporate/override/templates. If you want organize them in folders you will have to change entries in override.ini.append.php file for MatchFile.
Personal website -> http://serwatka.net Blog (about eZ Publish) -> http://serwatka.net/blog
Tuesday 26 July 2005 5:55:57 am
Thank you very much Luke!