Forums / Setup & design / Override on parent_node ?

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

eZ debug

Timing: Jan 19 2025 09:48:41
Script start
Timing: Jan 19 2025 09:48:41
Module start 'content'
Timing: Jan 19 2025 09:48:42
Module end 'content'
Timing: Jan 19 2025 09:48:42
Script end

Main resources:

Total runtime1.5954 sec
Peak memory usage4,096.0000 KB
Database Queries197

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0098 588.9453180.8438
Module start 'content' 0.00981.4447 769.7891557.3438
Module end 'content' 1.45460.1408 1,327.1328336.7500
Script end 1.5953  1,663.8828 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00450.2815210.0002
Check MTime0.00150.0942210.0001
Mysql Total
Database connection0.00110.068010.0011
Mysqli_queries1.517595.12051970.0077
Looping result0.00200.12541950.0000
Template Total1.554897.520.7774
Template load0.00230.144120.0011
Template processing1.552597.314220.7763
Template load and register function0.00010.005110.0001
states
state_id_array0.00160.101710.0016
state_identifier_array0.00260.159920.0013
Override
Cache load0.00190.1210420.0000
Sytem overhead
Fetch class attribute can translate value0.00130.081130.0004
Fetch class attribute name0.00120.075050.0002
XML
Image XML parsing0.00080.047630.0003
class_abstraction
Instantiating content class attribute0.00000.000860.0000
General
dbfile0.00510.3211270.0002
String conversion0.00000.000630.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
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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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