Issue while overriding my home page

Author Message

Denis Marcaux

Tuesday 07 April 2009 4:00:12 am

Hi,

I would like to use an override of pagelayout.tpl but only for my homepage.

So I add the following lines to the override.ini files on my siteaccess :

[frontpage]
Source=pagelayout.tpl
MatchFile=my_homepage.tpl
Subdir=templates
Match[node]=2

But even when I clear the cache, the template "/design/my_site/templates/pagelayout.tpl" is still in use.

FYI, in my "site.ini" I've defined my IndexPage like this :

IndexPage=/content/view/full/2/

Could you help me?

Thanks in advance.

PS : sorry for my english

Yannick Komotir

Tuesday 07 April 2009 7:45:21 am

hi,

an other override haven't the same name [frontpage] ?

<|- Software Engineer @ eZ Publish developpers -|>
@ http://twitter.com/yannixk

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

Main resources:

Total runtime0.7677 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.0128 588.0313152.6406
Module start 'layout' 0.01280.0039 740.671939.4609
Module start 'content' 0.01670.7495 780.1328520.0938
Module end 'content' 0.76620.0015 1,300.22668.3125
Script end 0.7676  1,308.5391 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.4726160.0002
Check MTime0.00140.1828160.0001
Mysql Total
Database connection0.00150.192810.0015
Mysqli_queries0.707292.1184540.0131
Looping result0.00050.0658520.0000
Template Total0.725294.520.3626
Template load0.00220.285920.0011
Template processing0.723094.177920.3615
Template load and register function0.00020.027910.0002
states
state_id_array0.00170.218910.0017
state_identifier_array0.00150.196220.0008
Override
Cache load0.00180.2361210.0001
Sytem overhead
Fetch class attribute can translate value0.00180.231420.0009
Fetch class attribute name0.00300.394230.0010
XML
Image XML parsing0.00070.096820.0004
class_abstraction
Instantiating content class attribute0.00000.001230.0000
General
dbfile0.00090.1142160.0001
String conversion0.00000.001240.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
3content/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
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: 6

Time used to render debug report: 0.0002 secs