This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit

eZ Community » Forums » Developer » change default pagelayout to some...

change default pagelayout to some other template

change default pagelayout to some other template

Thursday 18 September 2014 6:08:53 am - 7 replies


Any one knows how to change the default pagelayout.tpl to another template we create.

eg: replace pagelayout.tpl with example.tpl.

Please help happy.gif Emoticon

Thursday 18 September 2014 10:30:21 am

1. double posting is considered bad manners. Please refrain from doing it

2. you should probably start reading some docs about the design and templating logic in eZ -

Thursday 18 September 2014 12:25:15 pm

Hi ,

Sorry about that .I'll explain what i did.

  1. I have created a seperate pagelayout named jm_common.tpl.
  2.  In override.ini.append file added this code.  [jm_common]Source=pagelayout.tpl MatchFile=jm_common.tplSubdir=templatesMatch[persistent_variable]=jm_common 
  3.  I want to see  jm_common.tpl as pagelayout instead of pagelayout.tpl

how can i apply this? Is there anything wrong with  the code?

Thursday 18 September 2014 3:36:14 pm

Do you really have this persistent_variable set to jm_common and do you really need to match against persistent variable?

Thursday 18 September 2014 7:11:39 pm


No I don't want to match with persistent variable.The only requirement is to create another pagelayout instead of the existing pagelayout.


And I have no idea about how to access it?

I have several ways but does not worked.

Thursday 18 September 2014 10:25:37 pm

Hello upeksha,

For now, simply delete your custom ini override.ini settings changes for this item. You do not need ini settings to make a custom template.

Simply copy your custom template to extension/customdesign/design/customdesign/templates/pagelayout.tpl

Remember to clear all caches and reload in the browser to see your work in place as the main site pagelayout template override.

If you don't have a custom design extension, create one first!


Friday 19 September 2014 11:00:24 am

Continuing on what Heat said:

- if a custom template you add is used for ALL cases, you do not need an override rule for it

- your site uses multiple designs at once. Those are set in settings/siteaccess/<mysite>/site.ini.append.php

- the basic idea is that you create a new design, dedicated to your site, and put your templates in that design

- since the new design is the main one, templates found in that design will be used instead of the standard ones

- the recommended place to put your design elements is inside an extension. the extension need to declared that it has design elements as well, in extension/<myext>/settings/design.ini.append.php

Monday 22 September 2014 8:30:14 am


currently I have one extention named ezmove ,


can i create another extention and define seperate pagelayout there?  

lets say i have two templates.



and two pagelayouts.



a.tpl should show through pgl1.tpl and 2.tpl should show through pgl2.tpl.

please help to achive this.


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

36 542 Users on board!

Forums menu

Proudly Developed with from