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

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 31 2025 06:29:39
Script start
Timing: Jan 31 2025 06:29:39
Module start 'layout'
Timing: Jan 31 2025 06:29:39
Module start 'content'
Timing: Jan 31 2025 06:29:39
Module end 'content'
Timing: Jan 31 2025 06:29:39
Script end

Main resources:

Total runtime0.0122 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.0043 588.0000151.1953
Module start 'layout' 0.00430.0023 739.195336.5938
Module start 'content' 0.00660.0044 775.789189.9844
Module end 'content' 0.01100.0012 865.773429.9922
Script end 0.0122  895.7656 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002016.3799140.0001
Check MTime0.00097.6729140.0001
Mysql Total
Database connection0.00075.374810.0007
Mysqli_queries0.001814.983030.0006
Looping result0.00000.156110.0000
Template Total0.00097.710.0009
Template load0.00076.094710.0007
Template processing0.00021.545110.0002
Override
Cache load0.00054.034510.0005
General
dbfile0.00119.198680.0001
String conversion0.00000.056640.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