How to override pagelayout

Author Message

Donald Cramb

Monday 06 September 2004 9:56:51 pm

I would like to override pagelayout.tpl so that the welcome page has a different layout from the rest of my site. I have looked into overriding the template from my admin site but can't see how to trigger it. Does anyone know how to do this,

Thanks,

dcramb

Eivind Marienborg

Monday 06 September 2004 10:03:48 pm

You have to create an overrice based on node ID. This can't be set up through the web administrator interface, so you'll have to edit the override.append.ini file manually. It's located in /settings/siteaccess/[yoursite]/.

Add the following:

[welcome_page]
Source=pagelayout.tpl
MatchFile=YOUR_WELCOME_PAGE_TEMPLATE.tpl
Subdir=templates
Match[node]=2 (OR whatever node your welcome page has)

After you've added this to the file, it will show up in the web admin interface, letting you administrate priority there.

Donald Cramb

Monday 06 September 2004 10:29:33 pm

Great, thanks it worked. I set IndexPage within SiteSettings in site.ini.append.php to my welcome page, then did what followed the previous instructions and it worked

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 19 2025 04:16:55
Script start
Timing: Jan 19 2025 04:16:55
Module start 'layout'
Timing: Jan 19 2025 04:16:55
Module start 'content'
Timing: Jan 19 2025 04:16:56
Module end 'content'
Timing: Jan 19 2025 04:16:56
Script end

Main resources:

Total runtime0.8344 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.0059 589.1563152.6250
Module start 'layout' 0.00590.0049 741.781339.4453
Module start 'content' 0.01080.8220 781.2266500.6016
Module end 'content' 0.83280.0015 1,281.82818.1641
Script end 0.8343  1,289.9922 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3841160.0002
Check MTime0.00140.1633160.0001
Mysql Total
Database connection0.00070.085710.0007
Mysqli_queries0.787894.4209570.0138
Looping result0.00080.0900550.0000
Template Total0.793195.120.3966
Template load0.00170.204820.0009
Template processing0.791494.850320.3957
Template load and register function0.00020.019510.0002
states
state_id_array0.00130.161010.0013
state_identifier_array0.00160.185920.0008
Override
Cache load0.00140.1644140.0001
Sytem overhead
Fetch class attribute can translate value0.00060.075620.0003
Fetch class attribute name0.00090.109740.0002
XML
Image XML parsing0.00050.060220.0003
class_abstraction
Instantiating content class attribute0.00000.001140.0000
General
dbfile0.00180.2188160.0001
String conversion0.00000.001340.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs