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

eZ debug

Timing: Jan 18 2025 11:10:35
Script start
Timing: Jan 18 2025 11:10:35
Module start 'content'
Timing: Jan 18 2025 11:10:36
Module end 'content'
Timing: Jan 18 2025 11:10:36
Script end

Main resources:

Total runtime0.9345 sec
Peak memory usage4,096.0000 KB
Database Queries194

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0070 587.9375180.8125
Module start 'content' 0.00700.7741 768.7500487.2344
Module end 'content' 0.78110.1533 1,255.9844333.4531
Script end 0.9345  1,589.4375 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.4187210.0002
Check MTime0.00140.1545210.0001
Mysql Total
Database connection0.00060.068510.0006
Mysqli_queries0.858191.81931940.0044
Looping result0.00200.21441920.0000
Template Total0.901896.520.4509
Template load0.00200.218320.0010
Template processing0.899896.283520.4499
Template load and register function0.00020.020210.0002
states
state_id_array0.00240.260110.0024
state_identifier_array0.00100.102520.0005
Override
Cache load0.00150.1638620.0000
Sytem overhead
Fetch class attribute can translate value0.00210.224230.0007
Fetch class attribute name0.00130.142330.0004
XML
Image XML parsing0.00060.067530.0002
class_abstraction
Instantiating content class attribute0.00000.001030.0000
General
dbfile0.00240.2596210.0001
String conversion0.00000.000530.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 26
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs