One template at multiple nodes

Author Message

Trond Hjelmaas

Tuesday 07 June 2005 1:27:06 pm

Hi,

I have a templates that I would like to use in 3 different locations/nodes. I tried to copy parts of override.ini.append and just change the node_id:

[full_view_forum_subfolder]
Source=node/view/full.tpl
MatchFile=full_view_forum_subfolder.tpl
Subdir=templates
<i>Match[node]=163</i>

[full_view_forum_subfolder]
Source=node/view/full.tpl
MatchFile=full_view_forum_subfolder.tpl
Subdir=templates
<i>Match[node]=164</i>

but somehow only the first (with node 163) worked. Do I have to multiply the "full_view_forum_subfolder.tpl" file?

Can anyone help me :) ?

Arran Price

Tuesday 07 June 2005 6:05:47 pm

its not the use of
[full_view_forum_subfolder] as the identifier for all of them that is the problem?

do each of your overrides need a different identifier? else only the first is used?

I havent checked this, but figure its probably easy to test and rule out as a cause.

Arran

Eivind Marienborg

Wednesday 08 June 2005 12:37:57 am

Arran's right, you have to specify different identifiers for each override rule.

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 22:18:16
Script start
Timing: Jan 18 2025 22:18:16
Module start 'layout'
Timing: Jan 18 2025 22:18:16
Module start 'content'
Timing: Jan 18 2025 22:18:16
Module end 'content'
Timing: Jan 18 2025 22:18:16
Script end

Main resources:

Total runtime0.7295 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0068 589.3594152.6250
Module start 'layout' 0.00680.0034 741.984439.4609
Module start 'content' 0.01020.7178 781.4453536.5078
Module end 'content' 0.72800.0015 1,317.95318.1641
Script end 0.7294  1,326.1172 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4475160.0002
Check MTime0.00130.1773160.0001
Mysql Total
Database connection0.00110.148910.0011
Mysqli_queries0.674592.4679590.0114
Looping result0.00060.0866570.0000
Template Total0.692895.020.3464
Template load0.00230.313820.0011
Template processing0.690594.651320.3452
Template load and register function0.00020.027310.0002
states
state_id_array0.00080.112610.0008
state_identifier_array0.00070.096120.0004
Override
Cache load0.00180.2505260.0001
Sytem overhead
Fetch class attribute can translate value0.00060.077630.0002
Fetch class attribute name0.00090.120240.0002
XML
Image XML parsing0.00080.109030.0003
class_abstraction
Instantiating content class attribute0.00000.001340.0000
General
dbfile0.00080.1104160.0001
String conversion0.00000.001240.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
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs