Search Filter - Help

Author Message

John Smith

Friday 03 November 2006 9:39:45 am

hi there,

Hope someone can help me.

I have created some custom class in the folder. When I am searching from the user site, I am getting those custom classes as result. Is there any way to filter the search on class id's.

While creating the class all the attributes are non-searchable.

I been searching the fourms for last two hours with no luck.

Please help.

Smith

Mark Marsiglio

Friday 03 November 2006 10:28:30 am

Try the advanced search, it allows filtering by class and attribute.

http://yoursite.com/content/advancedsearch

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

John Smith

Sunday 05 November 2006 9:41:20 am

Thanks for kind reply.

Is there any way to do without advanced search. I dont want to show classes to my users.

Cheers

Smith

Mark Marsiglio

Sunday 05 November 2006 10:36:31 am

I agree - we usually hide advanced search as well. However, looking at the templates for advanced search should allow you to see the form fields that control class filtering on search, and would provide some clues as to how to modify the regular search to do some of the same things.

I am not 100% sure, but if you saw something like this:

<select name="SearchContentClassID">
<option  value="2">Article</option>

in the advanced search page, you could submit something similar as a hidden input on the standard search override. Or you could take entire components of the advanced search and put them in your standard search override.

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

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 04:33:56
Script start
Timing: Jan 31 2025 04:33:56
Module start 'layout'
Timing: Jan 31 2025 04:33:56
Module start 'content'
Timing: Jan 31 2025 04:33:56
Module end 'content'
Timing: Jan 31 2025 04:33:56
Script end

Main resources:

Total runtime0.0200 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.0072 588.0078151.1953
Module start 'layout' 0.00720.0042 739.203136.6172
Module start 'content' 0.01140.0069 775.820394.1250
Module end 'content' 0.01830.0016 869.945333.9922
Script end 0.0200  903.9375 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002914.5852140.0002
Check MTime0.00146.7712140.0001
Mysql Total
Database connection0.00094.692710.0009
Mysqli_queries0.004321.500430.0014
Looping result0.00000.134510.0000
Template Total0.00126.210.0012
Template load0.00094.633210.0009
Template processing0.00031.542810.0003
Override
Cache load0.00073.329610.0007
General
dbfile0.00126.214180.0002
String conversion0.00000.059540.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