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.

eZ debug

Timing: Jan 19 2025 07:06:25
Script start
Timing: Jan 19 2025 07:06:25
Module start 'layout'
Timing: Jan 19 2025 07:06:25
Module start 'content'
Timing: Jan 19 2025 07:06:25
Module end 'content'
Timing: Jan 19 2025 07:06:25
Script end

Main resources:

Total runtime0.0192 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0065 589.0391152.6094
Module start 'layout' 0.00650.0027 741.648439.4141
Module start 'content' 0.00920.0078 781.062589.1953
Module end 'content' 0.01690.0022 870.257830.3047
Script end 0.0191  900.5625 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002412.3660140.0002
Check MTime0.00115.7324140.0001
Mysql Total
Database connection0.00147.481410.0014
Mysqli_queries0.002613.330830.0009
Looping result0.00000.083410.0000
Template Total0.00189.210.0018
Template load0.00094.673010.0009
Template processing0.00094.470110.0009
Override
Cache load0.00063.272610.0006
General
dbfile0.002010.234980.0002
String conversion0.00000.039840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs