Line templates for custom classes

Author Message

Steve P

Monday 23 May 2005 8:26:27 am

Hello
I have created several new classes & would like to edit the default line templates for them. If I create a .tpl file for the custom class[s] & place it in my /templates/overrides dir how do I get the system to use the line new tempalate?

Many thanks in advance

Steve

Ɓukasz Serwatka

Thursday 26 May 2005 2:59:08 am

Hi Steve,

Here you find usefull informations about overriding templates
http://ez.no/ez_publish/documentation/customization/custom_design/override_templates

New override templates you can make in Design->Templates->/node/view/line.tpl and use match class. Every tpl created under node/view/line.tpl will be use by line view.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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

Main resources:

Total runtime0.8577 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0103 589.0703152.6250
Module start 'layout' 0.01040.0035 741.695339.4453
Module start 'content' 0.01380.8423 781.1406525.2344
Module end 'content' 0.85610.0015 1,306.37508.1563
Script end 0.8577  1,314.5313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.4443160.0002
Check MTime0.00160.1897160.0001
Mysql Total
Database connection0.00120.138410.0012
Mysqli_queries0.811594.6143540.0150
Looping result0.00050.0525520.0000
Template Total0.821195.720.4105
Template load0.00220.254820.0011
Template processing0.818995.467920.4094
Template load and register function0.00010.016310.0001
states
state_id_array0.00120.137110.0012
state_identifier_array0.00100.115020.0005
Override
Cache load0.00180.2135130.0001
Sytem overhead
Fetch class attribute can translate value0.00050.055920.0002
Fetch class attribute name0.00100.121930.0003
XML
Image XML parsing0.00070.083320.0004
class_abstraction
Instantiating content class attribute0.00000.000830.0000
General
dbfile0.00090.0995180.0000
String conversion0.00000.001140.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.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: 10
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs