Did the naming convention of pagelayout_section_n.tpl change?

Author Message

Dirk Billerbeck

Saturday 30 August 2003 2:04:43 am

Hello,

I'm new to eZpublish and am right now trying to understand the different directories, files, structures, etc. by studying the demo subdirectory.

As I have seen there is a change between eZpublish 3.0-2 and 3.1-1. Now the different /demo/override/templates/pagelayout_*.tpl files are no longer named e.g. pagelayout_section_1.tpl but pagelayout_news.tpl.

I'm a little confused right now. Will the "old" naming still work? Or is the new naming just a little bit more convenient and complementary to the old naming? And how are the new filenames derived, where do I have to look for to give my files the right name (especially with blanks in section names)? E.g. I have a section called 'Teams' would I have to name the template file pagelayout_teams.tpl or am I free to name it like I want?

TIA.

Dirk

Paul Borgermans

Saturday 30 August 2003 5:32:05 am

Yes, from 3.1 a more powerful template override system was introduced:

http://ez.no/developer/ez_publish_3/documentation/customization/custom_design/override_templates

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Dirk Billerbeck

Saturday 30 August 2003 4:52:19 pm

Hi Paul,

thanks for your answer.

cu,

Dirk

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

Main resources:

Total runtime0.6214 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.0075 589.3047152.6563
Module start 'layout' 0.00760.0036 741.960939.5078
Module start 'content' 0.01120.6086 781.4688531.0391
Module end 'content' 0.61980.0016 1,312.50788.2500
Script end 0.6214  1,320.7578 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.5207160.0002
Check MTime0.00140.2280160.0001
Mysql Total
Database connection0.00140.219810.0014
Mysqli_queries0.572492.1102570.0100
Looping result0.00050.0865550.0000
Template Total0.586994.420.2935
Template load0.00240.378620.0012
Template processing0.584594.061920.2923
Template load and register function0.00030.041710.0003
states
state_id_array0.00090.150210.0009
state_identifier_array0.00180.286420.0009
Override
Cache load0.00190.3090190.0001
Sytem overhead
Fetch class attribute can translate value0.00050.079320.0002
Fetch class attribute name0.00090.152440.0002
XML
Image XML parsing0.00060.101220.0003
class_abstraction
Instantiating content class attribute0.00000.001340.0000
General
dbfile0.00080.1260170.0000
String conversion0.00000.001640.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
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: 9
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs