Forums / Developer / search

search

Author Message

jb bianchi

Saturday 06 August 2005 6:44:07 am

ki,

I need help.
I created a class qualification(notion, expert, numeric index). I want to find expert in enter notion in the search.
I modified advancedsearch.tpl in order to search only in the class qualif or not in all the class. But now, if i search in enter a notion I find the name of the qualification and i want to have juste the expert of the qualifiacation.

If you know what i have to change that will be a great help for me.

thank's

Lazaro Ferreira

Sunday 07 August 2005 3:31:58 am

Hi,

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

eZ debug

Timing: Jan 20 2025 09:00:46
Script start
Timing: Jan 20 2025 09:00:46
Module start 'content'
Timing: Jan 20 2025 09:00:47
Module end 'content'
Timing: Jan 20 2025 09:00:47
Script end

Main resources:

Total runtime1.3648 sec
Peak memory usage4,096.0000 KB
Database Queries55

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0090 588.7656180.8594
Module start 'content' 0.00901.3446 769.6250494.7422
Module end 'content' 1.35360.0111 1,264.367242.1563
Script end 1.3647  1,306.5234 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.2760140.0003
Check MTime0.00140.0996140.0001
Mysql Total
Database connection0.00160.114210.0016
Mysqli_queries1.315296.3683550.0239
Looping result0.00060.0411530.0000
Template Total1.321896.920.6609
Template load0.00270.198620.0014
Template processing1.319196.653420.6596
Template load and register function0.00030.023810.0003
states
state_id_array0.00230.168510.0023
state_identifier_array0.00150.108420.0007
Override
Cache load0.00230.1696230.0001
Sytem overhead
Fetch class attribute can translate value0.00060.045620.0003
Fetch class attribute name0.00140.103120.0007
XML
Image XML parsing0.00030.020020.0001
class_abstraction
Instantiating content class attribute0.00000.000420.0000
General
dbfile0.00700.5136120.0006
String conversion0.00000.000530.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs