Forums / Extensions / eZ Find / Override advancedsearch.tpl

Override advancedsearch.tpl

Author Message

jul tonfa

Tuesday 06 October 2009 9:34:09 am

Hi there,

I want to override the advanced search in ez Find because the top of the default eZ Find advancedsearch.tpl contains this {* DO NOT EDIT THIS FILE! Use an override template instead. *}

/extension/ezfind/design/standard/templates/content/advancedsearch.tpl

Where need I to create this override of advancedsearch.tpl ? In the design of eZfind ? In the design of my siteaccesss ? Where ?
Also I need maybe to write some lines in the override.ini ?

Thank you for your help

Jul

Gaetano Giunta

Tuesday 06 October 2009 9:41:42 am

If you have a 'main design' of your site, just copy the template in design/yourdesign/templates/content/advancedsearch.tpl, remove the comment at the top and start tweaking it.

The design fallback chain principle will make sure that the template in your design is used instead of the one from the ezfind extension in the standard design.

Using an override template (and altering override.ini) is only needed when your new template needs to be used under some particular conditions and not on some other, which does not seem to be your case.

Principal Consultant International Business
Member of the Community Project Board

Carlos Revillo

Tuesday 06 October 2009 9:41:46 am

you can place it at

/design/[yourdesign]/templates/content/advancedsearch.tpl

or, if you prefer doig it with an extension, then it should be

/extension/[yourextension]/design/[yourdesign]/templates/content/advancedsearch.tpl

And no. you don't need to add anything in your override.

Check http://ez.no/doc/ez_publish/technical_manual/4_x/concepts_and_basics/designs/design_combinations for further information.

Carlos Revillo

Tuesday 06 October 2009 9:42:19 am

ups. sorry. i didn't see the reply from Gaetano.

jul tonfa

Wednesday 07 October 2009 2:51:22 am

Hi guys,

Thank you very much for your help. It works perfectly now !