Template override

Template override

Monday 25 July 2005 2:34:14 am - 2 replies

Author Message

Ɓ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

Salvatore Guarino

Tuesday 26 July 2005 5:55:57 am

Thank you very much Luke!

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.