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 » Override for standard searchresult.tpl

Override for standard searchresult.tpl

Override for standard searchresult.tpl

Friday 25 May 2012 8:33:47 pm - 2 replies

Hi to everyone!I'm new in eZ Publish, so this question may be simple for some people. I'm developing a web site with my custom HTML/CSS template. For this I've used Plain Site and I've created an extension with the desing inside it. My question is: How can I override the standard/content/searchresult.tpl? I mean, how many files should I create to do this? Where sould I place them? Wich settings files I have to config?Thanks in advance!

Sunday 27 May 2012 6:27:58 am

Hi Joao,

Overriding templates is a 2-step process:

  1. Copy the original template to /extension/my_ext/design/my_ext/override/templates/search/result.tpl
    • Note: you can place the template anywhere under override/templates - the folder/file in bold is just an example
  2. Create a new setting in /settings/siteaccess/my_siteaccess/override.ini.append.php (or /extension/my_ext/settings/siteaccess/my_siteaccess/override.ini.append.php if you're putting settings in your extension):



This will override all requests for the original template, and point them to your new template.

Check out The template override system & example in the online documentation, and check out the Template override conditions for conditional overriding.


Modified on Sunday 27 May 2012 6:29:43 am by Geoff Bentley

Monday 28 May 2012 8:45:02 pm

Hi Geoff!

Thanks for your reply, It's have been very helpful to me! I already did it! Thank you very much!!!


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

36 542 Users on board!

Forums menu

Proudly Developed with from