Overriding pagelayout.tpl for a custom module

Author Message

Dave Dykshoorn

Wednesday 20 August 2003 9:58:14 am

I have been looking for documentation on how to override pagelayout.tpl for custom modules without success. Here's the problem.

I have created a custom module that needs to be able to use a seperate pagelayout.tpl file from my main site. However the module doesn't have a sectionID, classID, or nodeID linked to it so there seems to be no way I can create an override for it in override.ini.append like I have been doing for standard eZp content.

example:
http://localhost/mysite/mymodule/myview
needs to use pagelayout.tpl located in:
design/mysite/templates/mymodule/pagelayout.tpl
instead of:
design/mysite/templates/pagelayout.tpl

Without the ID's mentioned above I am uncertain how to do this. I know its possible though... somehow... any help would be greatly appreciated.

Thanks in advance.

Dave

Claire Lin

Wednesday 20 August 2003 10:27:56 am

I believe that this thread is relevant to your question.

http://ez.no/content/view/full/30969/

Claire

Dave Dykshoorn

Wednesday 20 August 2003 11:28:51 am

Ah yes, thanks Claire,

$Result['pagelayout'] = 'mypagelayout.tpl';

was all I needed.

Thanks for your quick response, it is much appreciated.

Dave

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

Main resources:

Total runtime1.2144 sec
Peak memory usage8,192.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 588.2656151.2266
Module start 'layout' 0.00540.0048 739.4922220.7188
Module start 'content' 0.01021.2030 960.21094,206.3984
Module end 'content' 1.21320.0011 5,166.60947.8125
Script end 1.2143  5,174.4219 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.3205160.0002
Check MTime0.00130.1055160.0001
Mysql Total
Database connection0.00080.065810.0008
Mysqli_queries1.125892.7099570.0198
Looping result0.00060.0515550.0000
Template Total1.152794.920.5763
Template load0.00260.212720.0013
Template processing1.150194.706020.5750
Template load and register function0.00170.143610.0017
states
state_id_array0.00240.200310.0024
state_identifier_array0.00180.147620.0009
Override
Cache load0.00210.1751240.0001
Sytem overhead
Fetch class attribute can translate value0.00180.151020.0009
Fetch class attribute name0.00260.210930.0009
XML
Image XML parsing0.00030.021520.0001
class_abstraction
Instantiating content class attribute0.00000.000830.0000
General
dbfile0.00200.1616100.0002
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/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: 10
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs