Pagelayout override shows up for non content pages

Author Message

Nathalie G

Sunday 30 August 2009 2:18:17 pm

I made a new pagelayout that is used only on one section.

When I browse nodes not in the section, the main pagelayout shows up. Fine.
If I go to non content pages (ex Login / Basket / tags / ...) the main pagelayout shows up. Fine.

If I browse nodes in the section, the new pagelaylout showsup. Fine
But if now I go to non content pages (ex Login / Basket / tags / ...) then the new pagelayout show up, which is not the wanted behaviour.

What can I do to force the main pagelayout to be used for all non content nodes.

Is there a way to write this down ti the override.ini file ?

Thanks.

http://maisoncontemporaine.net

Nathalie G

Tuesday 01 September 2009 12:39:12 pm

I found a solution which is not to use the section match but the url_alias.

[mise_en_page_principale]
Source=pagelayout.tpl
MatchFile=mypagelayout.tpl
Subdir=templates
Match[url_alias]=Boutique

Works fine

http://maisoncontemporaine.net

André R.

Wednesday 02 September 2009 1:08:26 am

For some reason, eZ Publish saves the last section id in session and uses it on pages that are non content pages.
Its a strange artifact that I hope we can remove some day:)
( And it doesn't make a lot of sense, as if you have several tabs open to the same site, you'll get strange results if you don't know about how it works.)

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Gaetano Giunta

Wednesday 02 September 2009 2:28:01 am

Btw, there is already a bug filed for this: http://issues.ez.no/008916

Principal Consultant International Business
Member of the Community Project Board

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 20:56:52
Script start
Timing: Jan 18 2025 20:56:52
Module start 'layout'
Timing: Jan 18 2025 20:56:52
Module start 'content'
Timing: Jan 18 2025 20:56:53
Module end 'content'
Timing: Jan 18 2025 20:56:53
Script end

Main resources:

Total runtime0.6916 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 589.2734152.6406
Module start 'layout' 0.00520.0029 741.914139.4766
Module start 'content' 0.00810.6820 781.3906592.8828
Module end 'content' 0.69010.0015 1,374.273412.1250
Script end 0.6916  1,386.3984 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.4550160.0002
Check MTime0.00130.1841160.0001
Mysql Total
Database connection0.00070.095910.0007
Mysqli_queries0.638292.2714620.0103
Looping result0.00070.0955600.0000
Template Total0.661495.620.3307
Template load0.00210.297720.0010
Template processing0.659395.320920.3296
Template load and register function0.00020.032010.0002
states
state_id_array0.00120.170710.0012
state_identifier_array0.00090.129920.0004
Override
Cache load0.00170.2446270.0001
Sytem overhead
Fetch class attribute can translate value0.00150.219930.0005
Fetch class attribute name0.00110.164860.0002
XML
Image XML parsing0.00130.190930.0004
class_abstraction
Instantiating content class attribute0.00000.001460.0000
General
dbfile0.00100.1415230.0000
String conversion0.00000.001040.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/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: 19
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs