Tuesday 17 May 2005 5:40:07 am
Hi Hope someone can help me with this. I have upgraded an ezp 3.4.2 multi-site development installation to ezp 3.5.2, following all the correct upgrade steps in the docs. Then I manually created a new site access, complete with correct design, settings and var directories, all of which have the correct permissions. I then imported one of the styles packages to use as the basis for the layout of the site design, which created a collection of directories and files in the site access override directory, as well as putting some templates (e.g. menu templates and path.tpl) in the site access template directory. The problem now is that only some of my override templates are used. In particular, I an unable to override the full.tpl template with any of the override templates. For instance, in the override.ini.append.php file I have two similar override blocks:
[full_folder]
Match[class_identifier]=folder
Source=node/view/full.tpl
MatchFile=full/folder.tpl Subdir=templates
[line_folder]
Match[class_identifier]=folder
Source=node/view/line.tpl
MatchFile=line/folder.tpl Subdir=templates The override for the line.tpl works, while the full.tpl override does not. Everytime, the site uses design/standard/templates/node/view/full.tpl instead of the override. I have changed the order of the blocks in the override.ini.append.php file to make sure the most general ones are last (learned that trick a long time ago). I even deleted the rest of the override blocks and left only the one for full.tpl. It still didn't work. If I move the two templates into the directory /design/<site_access>/override/templates, I get the same result: the line.tpl override works and the full.tpl one doesn't. If I copy design/<site-access>/override/template/full/folder.tpl to design/<site_access>/templates/node/view/full.tpl, then the override template is used and the full_folder is displayed how I want it. So, at least that part of the cascade is working. However, that's no use, as I need to be able to override full.tpl with several other templates. I get the same result with the following override blocks:
[infopage]
Match[class_identifier]=info_page
Source=node/view/full.tpl
MatchFile=full/infopage.tpl Subdir=templates and
[full_article]
Match[class_identifier]=article
Source=node/view/full.tpl
MatchFile=full/article.tpl Subdir=templates Neither of these override full.tpl. Templates that do not have overrides, such as design/<site_access>/templates/menu/flat_left.tpl and design/<site_access>/templates/parts/path.tpl are used in the correct way. I have cleared the cache every time I make a change, and checked in the var directory to make sure the files are actually deleted (which they were). So, it appears that it' not a caching problem. Has anyone else struck this? If so, what did you do to solve it. Or can someone see a mistake I have made? Is it anything to do with using one of the styles packages? This is driving me mad (a not uncommon stage of mind for eZpublish developers). I've spent most of today trying to find the cause and I have ground to a halt! Cheers Iain MacLean
|