Forums / Setup & design / Guidance on 'overrides'

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Guidance on 'overrides'

Author Message

Brian Henkel

Friday 18 April 2008 12:03:55 pm

Hello,

I am fairly new to Exponential, so please excuse my ignorance. I've been reading as much as possible to get up-to-speed.

I want to change the layout of my homepage. I know 'overrides' is how I accomplish this. 'pagelayout.tpl' is the main template file. In order to override this, I need to make a copy and place it at: design/ezwebin_site/override/templates/ .

Now I need to change the 'override.ini.append.php' file located at: settings/siteaccess/

Inside the 'override.ini.append.php' file I place:

[pagelayout_override] 

(I can name this anything, correct?)

Source=design/standard/templates/pagelayout.tpl 

(this is the path to the pagelayout.tpl file I'm overriding)

MatchFile=<pagelayoutcopy.tpl>

(MatchFile = whatever I name the new file that will override the previous file)

Subdir=templates


I know I can also add 'Match[class_identifier]=' here for special instances, but I don't believe I need it in this case, correct?

Thanks for your guidance,

Brian

paul bolger

Friday 18 April 2008 9:38:48 pm

Here's one that works for me:

Note the node parameter, this overrides the front page only, and that's its node id. Also note that Subdir=templates refers to override/templates in your siteaccess.

I normally test that the override is working by putting <h1>New Pagelayout</h1> at the top to the template copy. Also, if it doesn't seem to work clear the cache.

[frontpagelayout]
Source=pagelayout.tpl
MatchFile=frontpagelayout.tpl
Subdir=templates
Match[node]=373

Paul Bolger

Siw Helen Thorslund

Saturday 19 April 2008 2:05:39 am

Hi Brian,

Have a look here:

http://ez.no/doc/ez_publish/technical_manual/4_0/templates/the_template_override_system

www.VZT.no ( http://www.VZT.no )
VZT References ( http://http://vzt.no/index.php/vzt_eng/referanser )
VZT Extensions ( http://vzt.no/index.php/vzt_eng/extensions )
www.MediaBase.no ( http://www.MediaBase.no )