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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 16:07:32
Script start
Timing: Jan 18 2025 16:07:32
Module start 'layout'
Timing: Jan 18 2025 16:07:32
Module start 'content'
Timing: Jan 18 2025 16:07:33
Module end 'content'
Timing: Jan 18 2025 16:07:33
Script end

Main resources:

Total runtime0.9499 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0070 588.1563152.6563
Module start 'layout' 0.00700.0026 740.812539.4922
Module start 'content' 0.00960.9389 780.3047482.1250
Module end 'content' 0.94850.0014 1,262.429712.1094
Script end 0.9499  1,274.5391 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3379160.0002
Check MTime0.00140.1453160.0001
Mysql Total
Database connection0.00150.163210.0015
Mysqli_queries0.896394.3501570.0157
Looping result0.00050.0536550.0000
Template Total0.916996.520.4585
Template load0.00210.223220.0011
Template processing0.914896.299020.4574
Template load and register function0.00020.023710.0002
states
state_id_array0.00070.078510.0007
state_identifier_array0.00120.127820.0006
Override
Cache load0.00180.1917620.0000
Sytem overhead
Fetch class attribute can translate value0.00040.042620.0002
Fetch class attribute name0.00100.101730.0003
XML
Image XML parsing0.00020.024420.0001
class_abstraction
Instantiating content class attribute0.00000.001430.0000
General
dbfile0.00060.0589100.0001
String conversion0.00000.000840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
12content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
9content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 26
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs