Forums / Developer / Advanced Search - Is this possible?

Advanced Search - Is this possible?

Author Message

Tristan Koen

Wednesday 20 August 2003 2:17:13 am

I have a number of classes; articles, whitepapers, presentations, etc.

As part of the navigation on my website, I would like to then have a mini menu that looks as follows:

Show all:
- Articles
- Whitepapers
- Presentations
- etc

I figure the best way to do this would be to use the advanced search, searching on classes.
The problem is that I cannot get the advanced search to work with HTTP GET parameters.

Can anyone her eexplain how to do this, or suggest an alternative way to accomplish the same thing?

Paul Forsyth

Wednesday 20 August 2003 7:53:47 am

Advanced search can do what you want. A good example is to look at the ez site, at:

http://ez.no/content/advancedsearch

Look at the source and it will show you what hidden variables you need to set. Basically you need to tell the advancedsearch how you want to search by means of hidden variables.

Paul

Tristan Koen

Wednesday 20 August 2003 11:57:49 am

Hi Paul

Thanks, but it isn't exactly what I am looking for. The http://ez.no advanced search gets its parameters through an HTTP POST, not a GET.

I don't want to use a form since it is not consistent with the look & feel of my site. I would far prefer to have a set of <a href=...></a> links in a floating <div>.
I posted another message about passing parameters using an HTTP GET, but no response yet. I am going to assume for the moment that it cannot be done :(

Regards,

Tristan

Tristan Koen

Friday 22 August 2003 12:07:21 am

Sorry Paul,

You were right. The form uses a method="get". I didn't bother looking. I just assumed a method="post".

I think that from now on I need to stop jumping to conclusions :(

eZ debug

Timing: Jan 18 2025 14:57:11
Script start
Timing: Jan 18 2025 14:57:11
Module start 'content'
Timing: Jan 18 2025 14:57:12
Module end 'content'
Timing: Jan 18 2025 14:57:12
Script end

Main resources:

Total runtime0.8792 sec
Peak memory usage4,096.0000 KB
Database Queries61

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 588.8516180.8281
Module start 'content' 0.00640.8672 769.6797484.7813
Module end 'content' 0.87350.0056 1,254.460942.1016
Script end 0.8791  1,296.5625 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.3816140.0002
Check MTime0.00140.1601140.0001
Mysql Total
Database connection0.00070.083710.0007
Mysqli_queries0.835695.0431610.0137
Looping result0.00070.0750590.0000
Template Total0.846296.320.4231
Template load0.00220.254820.0011
Template processing0.844095.994620.4220
Template load and register function0.00020.023610.0002
states
state_id_array0.00140.153710.0014
state_identifier_array0.00100.114820.0005
Override
Cache load0.00190.2159290.0001
Sytem overhead
Fetch class attribute can translate value0.00070.081420.0004
Fetch class attribute name0.00130.144440.0003
XML
Image XML parsing0.00020.025020.0001
class_abstraction
Instantiating content class attribute0.00000.001140.0000
General
dbfile0.00250.2886120.0002
String conversion0.00000.000630.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/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: 16
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs