Forums / Developer / customize search: multiple attributes in the GET request

customize search: multiple attributes in the GET request

Author Message

Stefano Vaghi

Thursday 31 July 2008 6:36:24 am

Hi, I have customized advancedsearch.tpl to create mypersonalsearch.tpl with the following lines to search only in the section 7, among the document with 43 as id.

<input type="hidden" name="SearchSectionID" value="7" />
<input type="hidden" name="SearchContentClassID" value="43" />

Moreover,I need to search between 2 attributes of the documents and so I added these other lines:

<input type="hidden" name="SearchContentClassAttributeID" value="331" />
<input type="hidden" name="SearchContentClassAttributeID" value="332" />

Unfortunately, in this way, the search uses only the second attribute (332)...how can I pass all the attributes to the "get"?

Thanks in advance for suggestions.

Ivo Lukac

Thursday 31 July 2008 7:40:51 am

Hi stefano,

You can try with this:

<input type="hidden" name="SearchContentClassAttributeID[]" value="331" />
<input type="hidden" name="SearchContentClassAttributeID[]" value="332" />

but I think that engine support only 1 attribute...

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Stefano Vaghi

Monday 04 August 2008 1:19:55 am

Thanks for your advice...it seems to work...I am going to analyze the code of ezsearch.php.

Bye