Forums / General / Search Filter - Help

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