Override don't work

Author Message

K259

Wednesday 19 July 2006 7:40:56 am

For node 79, I try to show a modified folder-full template, but I only get a blank page in the $content variable.

[full_foldernode79]
Source=node/view/full.tpl
MatchFile=foldernode79.tpl
Subdir=templates
Match[node]=79
Match[class_identifier]=folder

[full_folder]
Source=node/view/full.tpl
MatchFile=full/folder.tpl
Subdir=templates
Match[class_identifier]=folder

I use this setting on another page without any problems, so don't know what's wrong now :(

Kristian Hole

Wednesday 19 July 2006 7:59:24 am

Hi,

The settings look right. A small note: You probably do not need to add a match for class-identifier when you are matching on node_id. There is no other node with a different class identifier.

Look in your debug-output. Does it say: No template could be found for....

In that case you should clear your caches (template+content in the rightmenu of the admin interface), and it should work.

Kristian

http://ez.no/ez_publish/documenta...tricks/show_which_templates_are_used
http://ez.no/doc/ez_publish/techn...te_operators/miscellaneous/attribute

K259

Wednesday 19 July 2006 8:17:08 am

Yes, debug says it can't find foldernode79.tpl, but I've put this in both sitedesign base, standard and forum..and also cleared the cache..

K259

Wednesday 19 July 2006 2:03:40 pm

Now it works. I found out that the foldernode79.tpl had to be in:
/www/design/forum/override/templates ...which I don't find very logical..since the default class I'm overriding for a node is in: /www/design/forum/override/templates/full/..

Why does an override for folder has to be under templates..and not under templates/full?

Kristof Coomans

Thursday 20 July 2006 2:02:37 am

If you want your override template in the full directory, then use

MatchFile=full/foldernode79.tpl

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

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

Main resources:

Total runtime0.7093 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 588.9219152.6094
Module start 'layout' 0.00700.0023 741.531339.4297
Module start 'content' 0.00930.6984 780.9609597.7500
Module end 'content' 0.70770.0015 1,378.710912.1875
Script end 0.7092  1,390.8984 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.5172160.0002
Check MTime0.00160.2250160.0001
Mysql Total
Database connection0.00130.183610.0013
Mysqli_queries0.648991.4813650.0100
Looping result0.00100.1382630.0000
Template Total0.673695.020.3368
Template load0.00210.298020.0011
Template processing0.671494.662720.3357
Template load and register function0.00020.029010.0002
states
state_id_array0.00140.195410.0014
state_identifier_array0.00270.386720.0014
Override
Cache load0.00170.2408320.0001
Sytem overhead
Fetch class attribute can translate value0.00070.105130.0002
Fetch class attribute name0.00210.290470.0003
XML
Image XML parsing0.00120.174030.0004
class_abstraction
Instantiating content class attribute0.00000.002070.0000
General
dbfile0.00110.1597220.0001
String conversion0.00000.000940.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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 20
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs