Question on advanced search function

Author Message

Toms King

Sunday 20 August 2006 7:51:49 pm

Hi, all,

I want to design a custom search function in advanced search function template which can

achieve the function that search for the result by provides the value of more than two attributes,

which is similar to select * from class company where company.name = "TST" and

company.owner = "Little Tom". Although many ppl ask this question, but their solutions seem

not work for me.

I viewed this post, http://ez.no/community/bugs/search_lacks_multi_attribute_queries

It said that Multi attribute search has been available since 3.2, I think, but has not been

documented nor tested very well. OR/NOT is not supported, AND is allways used.

But when I follow author's instruction, add

<input type="hidden" name="Content_search_attribute_fulltext_classattribute_id[]" value="120" />
<input type="text" name="Content_search_attribute_fulltext_value[]" value="{$search_array_by_class_attribute_id['120']['value']}" />

<input type="hidden" name="Content_search_attribute_fulltext_classattribute_id[]" value="121" />
<input type="text" name="Content_search_attribute_fulltext_value[]" value="{$search_array_by_class_attribute_id['121']['value']}" />

to advancedsearch.tpl, and run it, then nothing has been fetched.

I don't know what does Content_search_attribute_fulltext_classattribute mean, I searched all

the eZpublish files, but didn't find this phrase.

Who can help me, really quite hurry lor....................>___<

Thank you very much.

Best regards,

Toms

Toms King

Monday 21 August 2006 12:47:06 am

I think maybe I got the answer.

just add one line of code

 <input type="hidden"
name="SearchContentClassID"
value="17" />

view this page for details

http://ez.no/bugs/view/7170

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.