How to override pagelayout.tpl for custom extensions?

Author Message

Massimiliano Bariola

Friday 17 June 2005 4:25:30 am

Hi,

how can I override the pagelayout.tpl for a custom extension?

eg. the home page of my site opens in page

www.example.com/myextension/homepage/

and I would like it to use a custom layout for it.

I found this thread in the forum:

http://ez.no/community/forum/developer/extension_overrideini_matches_is_it_possible_

but I was unable to make the suggested solution work under eZ3.6.0.
Tony, Paul, any hint ?

Thanks

Eirik Alfstad Johansen

Friday 17 June 2005 4:39:59 am

Hi Massimiliano,

You could check out Paul and Tonys worldpay extension. I belive it used a custom pagelayout called wp_pagelayout.tpl.

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Massimiliano Bariola

Friday 17 June 2005 6:15:39 am

Thanks Elrik, I checked it out and found I was using a wrong path for the pagelayout file. now it works correctly :)

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 10:31:01
Script start
Timing: Jan 18 2025 10:31:01
Module start 'layout'
Timing: Jan 18 2025 10:31:01
Module start 'content'
Timing: Jan 18 2025 10:31:02
Module end 'content'
Timing: Jan 18 2025 10:31:02
Script end

Main resources:

Total runtime1.6340 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.0066 588.0625152.6406
Module start 'layout' 0.00660.0056 740.703139.4766
Module start 'content' 0.01221.6202 780.1797538.5078
Module end 'content' 1.63240.0015 1,318.687512.1250
Script end 1.6339  1,330.8125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.2583160.0003
Check MTime0.00220.1329160.0001
Mysql Total
Database connection0.00110.066510.0011
Mysqli_queries1.575096.3944570.0276
Looping result0.00060.0385550.0000
Template Total1.571796.220.7858
Template load0.00210.131020.0011
Template processing1.569596.056020.7848
Template load and register function0.00010.005710.0001
states
state_id_array0.00140.083810.0014
state_identifier_array0.00350.214920.0018
Override
Cache load0.00180.1095210.0001
Sytem overhead
Fetch class attribute can translate value0.00080.047320.0004
Fetch class attribute name0.00200.121550.0004
XML
Image XML parsing0.00090.053720.0004
class_abstraction
Instantiating content class attribute0.00000.000960.0000
General
dbfile0.00180.1098230.0001
String conversion0.00000.000740.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/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: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs