Forums / Setup & design / I am going crazy with this new content.ini disaster .....

I am going crazy with this new content.ini disaster .....

Author Message

Michael Bolien

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

 

Erik Petersen

Thursday 17 July 2003 12:38:34 pm

That should be the override.ini.append file and the override template should be in design/override.templates.

design/override/templates/actual.tpl <- template here

In override.ini.append in settings/siteaccess/user:

[actual]
Source=node/view/full.tpl
MatchFile=actual.tpl
Subdir=templates
Match[node]=236

Read this: http://ez.no/developer/ez_publish_3/documentation/customization/custom_design/override_templates

Michael Bolien

Friday 18 July 2003 2:45:40 am

Thank you Erik,

your suggestion is one of my yesterday tries. Today I rewind all and started at the beginning .... and although I did what you suggested, still the same error!

Warning: eZTemplate:node_view_gui Jul 18 2003 11:41:20
None of the templates design:node/view/actual.tpl could be found

actual.tpl is in design/override/templates with proper rights
in override.ini.append.php was added
[actual]
Source=node/view/full.tpl
MatchFile=actual.tpl
Subdir=templates
Match[node]=236

and finally, the cache has been cleared.

I have to upgrade that site, because of order of my customers and, sorry - I don't know how.

Michael