Share » Forums » Setup & design » Match[section] Override problems

Match[section] Override problems

Match[section] Override problems

Friday 07 April 2006 9:24:42 am - 3 replies

Modified on Friday 07 April 2006 9:25:45 am by Martin Sanders

Author Message

Christian Johansen

Friday 07 April 2006 9:52:36 am

First of all - turn on debugging and see if you get any template loading related error messages. You also need to make sure that the override for the section is placed above any other overrides for the same templates in override.ini, ie:

[casestudy_article_full]
Source=node/view/full.tpl
MatchFile=full/casestudy_article.tpl
Subdir=templates
Match[class_identifier]=article
Match[section]=9

[article_full]
Source=node/view/full.tpl
MatchFile=full/casestudy_article.tpl
Subdir=templates
Match[class_identifier]=article

If you have them the other way around, the article_full override will take presedence. The last thing you need to do is clear out your ini cache - overrides are not reloaded if the ini settings are cached.

Martin Sanders

Friday 07 April 2006 10:12:29 am

Hi Christian,

Thanks, your recommendation worked. I moved my new override to the top of the list. Only one last question how will that effect other overrides?

Many thanks,

Christian Johansen

Saturday 08 April 2006 1:55:18 am

It will only affect overrides to the full.tpl template for the article class in the section you specify. If an article is to be viewed in full mode and it is not in the specified section, eZ will look further down the list.

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

36 542 Users on board!

Forums menu