Thursday 17 July 2003 11:06:45 am
Hi everybody, I'm upgrading a few sites from ez 3.0.2 to ez 3.1.1. So far, everything works fine as long as there's no special programming into the templates. But, in one template, there's a switch-statement to find out, which action should be chosen. Here's the code:
.....
{case}
{switch match=$node.node_id}
{case match=236}
{node_view_gui view=actual content_node=$node}
{/case}
{case}
{include uri="design:article.tpl"}
{/case}
{/switch}
{/case} ...........
now the problem: we are calling the site with node ID = 236, here's the debug-output:
Notice: Jul 17 2003 19:52:56 eZTemplate: Loading template "node/view/actual.tpl" with resource "design"
Warning: eZTemplate:node_view_gui Jul 17 2003 19:52:56 None of the templates design:node/view/actual.tpl could be found I put this stuff in the content.ini:
[actuallist]
Source=node/view/full.tpl
MatchFile=actual.tpl
Subdir=templates Match[node]=236 The name of the template is actual_class_1.tpl, resp. actual.tpl. I moved the files around all folders .........., cleared the cache a thousand times .... All worked good in 3.02, but I believe, it won't work in 3.1.1. Maybe someone knows a better documentation than http://ez.no/developer/ez_publish_3/documentation/customization/custom_design/override_templates I hate those trial and errors and the wasting of time with ez 3.1.1!
Regards Michael
|