Forums / Setup & design / Match[section] Override problems
Martin Sanders
Friday 07 April 2006 9:24:42 am
Hi, I've set-up all our main (1st level) folders into individual sections with linked permissions and content, all seems to work fine but when I try to set the '/settings/siteaccess/website/override.ini.append.php' parameters they do not seem to work.
[casestudy_article_full] Source=node/view/full.tpl MatchFile=full/casestudy_article.tpl Subdir=templates Match[class_identifier]=article Match[section]=9
Am I doing something wrong, any help would be welcomed as I've spent all day trying to figure out how the issue can be resolved.
eZ publish, version 3.7.3
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.
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,
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.