Module Pagelayout

Module Pagelayout

Tuesday 18 May 2010 5:05:45 am - 2 replies

Author Message

Gaetano Giunta

Tuesday 18 May 2010 5:17:10 am

The override you set up is used globally, as there is no 'criteria' that tells eZ when it has to be applied.

If you want to change the pagelayout used in an ezp module/view, you can use the override conditions defined here: http://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_override_conditions

If it's a custom view, you can define the pagelayout used in $Results, eg:

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

Principal Consultant International Business
Member of the Community Project Board

HÃ¥kan Bergman

Tuesday 18 May 2010 9:23:13 am

Hi Gaetano,

Thanks for your information.

As I want a custom pagelayout (stripped to my needs for a custom JS-box) then $Result['pagelayout'] = 'template.tpl' did the trick. Thanks a lot. I didn't find any information about $Result[] and when I looked in other files all I found was $Result['content'] to load the template I needed.

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.