customize search

Author Message

jb bianchi

Tuesday 09 August 2005 1:31:08 am

hi,

I have to customize the advanced search. In fact, I have to search in writing a word attributs of differents class and different sections.
for example, I created 2 differents class:
qualif(name, word, expert, float)
expert(name, nickname, description)

First I write a word ond I have to search this word in the qualif class. (no problem). But in the same time, I have to the search in the expert's class. And I do achieve it...........

I need help.
I have look the template advanced search, searchresult and search.
It is possible to do that: For example, when the first search is finish and the resul is shows by the searchresult.tpl I put the same code than advanced search at the end of the searchresult.tpl?

thank's.

Lazaro Ferreira

Tuesday 09 August 2005 2:18:20 am

Hi,

I'm wondering if you have read my answer to your previous post on the same issue

It follows
----------------------------------------------

You have at least two ways of doing it

Using Template fecth function :

http://ez.no/doc/ez_publish/technical_manual/3_6/reference/modules/content/fetch_functions/search

This way you have to create and program the search form yourself

or you can use EZP custom search box (a further
development of ezp advanced search implementation )

http://ez.no/products/ez_publish_cms/documentation/customization/components/search/custom_search_box

I would recommend you this second way, because it is easier to implement, and lets you reuse ezp advanced search mechanism with a bit of programming for "attribute based search", when you are done with this overriding the ezp advanced search template is only a matter of creating a template view (advanced search does support it)

To understand how to create template views you can follow this links http://ez.no/doc/ez_publish/technical_manual/3_6/concepts_and_basics/modules_and_views
http://ez.no/doc/ez_publish/technical_manual/3_6/templates/template_basics#template_generation
http://ez.no/doc/ez_publish/technical_manual/3_6/templates/the_template_override_system

Lazaro
http://www.mzbusiness.com

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.