Override on parent_node ?

Author Message

Marco Zinn

Thursday 06 November 2003 1:33:28 pm

Our "line view" template for articles does not show the publish and modification time, as we usually do not need this.
But for some "news" folders, we want to override the line view template for "article", matching on parent_node .
The documentation tells us, that this is possible (http://ez.no/developer/ez_publish_3/documentation/customization/custom_design/override_templates), but it does not work for us.
The Template-Match-Block in override.ini is at the second position (just after the pagelayout override for that siteaccess), but still, the "general" override template for articles for that siteaccess is used.

So: Has anyone had success with overriding on parent_node?
If so, please provide the full override.ini, if possible.

I saw some old postings here with persons having problems, but also some "success" postings.

PS: Yes, we cleared all caches ;)

Marco
http://www.hyperroad-design.com

Paul Forsyth

Thursday 06 November 2003 3:20:55 pm

Yip, i've had the override working when matching by parent_node.

Your position sounds fine. I find that the overrides are sensitive to file positions, but near the top should do the trick...

Ok, your cache is fine, have you checked whether the admin can see it (through setup/templates) and if your file permissions are ok?

paul

Marco Zinn

Wednesday 12 November 2003 3:43:04 pm

Hm, it does not work still.
Can you please provide your override.ini snippet?
Did you just override on parent_node or did you combine it with class_id or so?
We just have tried overriding on parent_node ID, but it has no effect.

Marco
http://www.hyperroad-design.com

Paul Forsyth

Thursday 13 November 2003 1:22:57 am

Heres the snippet.

# Articles
[full_home_article]
Source=node/view/full.tpl
MatchFile=node/full_home_article.tpl
Subdir=templates
Match[class]=17

[full_biography_article]
Source=node/view/full.tpl
MatchFile=node/full_biography_article.tpl
Subdir=templates
Match[class]=2
Match[parent_node]=45

[full_article]
Source=node/view/full.tpl
MatchFile=node/full_article.tpl
Subdir=templates
Match[class]=2

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

Main resources:

Total runtime0.6680 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 590.2656152.6250
Module start 'layout' 0.00510.0031 742.890639.4453
Module start 'content' 0.00820.6584 782.3359552.2656
Module end 'content' 0.66660.0014 1,334.601612.1641
Script end 0.6680  1,346.7656 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.4711160.0002
Check MTime0.00130.1960160.0001
Mysql Total
Database connection0.00060.084710.0006
Mysqli_queries0.611991.6054600.0102
Looping result0.00050.0771580.0000
Template Total0.639895.820.3199
Template load0.00220.334220.0011
Template processing0.637595.438420.3188
Template load and register function0.00010.022010.0001
states
state_id_array0.00100.144010.0010
state_identifier_array0.00080.113920.0004
Override
Cache load0.00190.2839420.0000
Sytem overhead
Fetch class attribute can translate value0.00100.148820.0005
Fetch class attribute name0.00130.195950.0003
XML
Image XML parsing0.00060.096120.0003
class_abstraction
Instantiating content class attribute0.00000.002860.0000
General
dbfile0.00080.1215160.0001
String conversion0.00000.001540.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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 22
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs