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.