problems with overriding templates in 3.1 stable?

Author Message

Bernhard Hyden

Thursday 03 July 2003 5:49:18 am

Hallo,

I´ve troubles with overriding templates in the new version(3.1 stable)
I´ve placed my templates in design/mydesign/override/templates/node/view/
eg: line_class_15.tpl or full_class_15.tpl
For showing folders´there ist also the full_class_1.tpl in this directory.
but ezPublish alway load the standardtemplate full.tpl from the directory
design/mydesign/templates/node/view
I tried to call directly my template with http://ez31/index.php/mydesign/content/view/line/15/ but it alway display the standard line.tpl :-(

are there any changes in the new version?
where could be the mistake?
Thanks for helping,
Bernhard

Karsten Jennissen

Thursday 03 July 2003 6:02:45 am

Hi Bernhard,

take a look at this:
http://ez.no/developer/ez_publish_3/documentation/ez_publish_3/terminology_basics/the_new_template_override_system_from_31_onwards
which explains the new template override system.

Karsten

Bernhard Hyden

Thursday 03 July 2003 7:07:33 am

hi,

fine, it works ;-)
thanks for helping,
bernhard

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 11:44:09
Script start
Timing: Jan 18 2025 11:44:09
Module start 'layout'
Timing: Jan 18 2025 11:44:09
Module start 'content'
Timing: Jan 18 2025 11:44:10
Module end 'content'
Timing: Jan 18 2025 11:44:10
Script end

Main resources:

Total runtime0.9833 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 588.0391152.6406
Module start 'layout' 0.00630.0026 740.679739.4766
Module start 'content' 0.00900.9727 780.1563470.7891
Module end 'content' 0.98170.0015 1,250.94538.1250
Script end 0.9833  1,259.0703 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3335160.0002
Check MTime0.00130.1340160.0001
Mysql Total
Database connection0.00120.124710.0012
Mysqli_queries0.937895.3746570.0165
Looping result0.00050.0542550.0000
Template Total0.947696.420.4738
Template load0.00220.221720.0011
Template processing0.945496.144920.4727
Template load and register function0.00020.023410.0002
states
state_id_array0.00130.132910.0013
state_identifier_array0.00230.231020.0011
Override
Cache load0.00180.1835260.0001
Sytem overhead
Fetch class attribute can translate value0.00080.086120.0004
Fetch class attribute name0.00200.207030.0007
XML
Image XML parsing0.00020.023520.0001
class_abstraction
Instantiating content class attribute0.00000.000730.0000
General
dbfile0.00060.0617100.0001
String conversion0.00000.000840.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
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs