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 » Setup & design » diffrent front page header design!

diffrent front page header design!

diffrent front page header design!

Tuesday 14 February 2012 4:24:56 pm - 4 replies

HI everyone!

I wanted to know is there any way to have a diffrent design of header, for each pages? for instance menu places, logo size, and every thing in a web site?

In my case i need to build a website which has two different type of header. one for home page and another one for interior pages. and i am wondering if it is possible within ezpublish... 

thank you in advance for any help happy.gif Emoticon

Modified on Tuesday 14 February 2012 6:34:10 pm by nazanine ahmadi

Wednesday 15 February 2012 2:19:07 pm


You need to override your pagelayout template.

Here is a tutorial on custom page layouts.


Wednesday 15 February 2012 2:28:32 pm

Hi there

this can easily be done through the eZ override mechanism. Unfortunately it is not commonly known that you can use it also for the pagelayout template. This is how to make it:

  • create the pagelayout template for the frontpage and call it frontpage.tpl
  • place this file into the (userdesign)/override/templates folder
  • add the following lines to settings/site_access/(userdesign)/override.ini

This assumes that your frontpage is on node 2, as for a standard eZ installation.

If you would need different page layouts, you would typically use sections to distinguish different layouts. You would the need to adjust the "Match" clause above.

Hope this helps.

Best regards

Thursday 16 February 2012 11:35:21 am

Thank you very much , it works now , but there is a problem: i copied everything i had in my last front page and some thing from pagelayout to this new front page , but none of the javascript and css worked ; so i activated my css with page_header_style.tpl; it brought all the last csses but then javascripts didnt work. 

For sure i have to have different css which works only with this page , what can i do ?

and the most impotant thing is that the pictures hadn't been fetched as well! 

Thursday 16 February 2012 12:07:48 pm

i created a template same as page_header_style.tpl name it differently and put it in my new front page.

and within this template i put only one css. and now this css works. 

but i dont have still the pictures fetched into my last frontpage.  

am i in the right way? 


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

36 542 Users on board!

Forums menu

Proudly Developed with from