Share » Forums » Setup & design » Custom advanced search and google...

Custom advanced search and google navigator

Custom advanced search and google navigator

Thursday 16 March 2006 8:24:03 am - 2 replies

Modified on Thursday 16 March 2006 8:25:57 am by laurent le cadet

Author Message

laurent le cadet

Thursday 16 March 2006 9:35:44 am

Well,

I tried this :

page_uri_suffix=concat('?SearchContentClassID=',36,'&Content_search_attribute_fulltext_classattribute_id%5B%5D=',350,'&Content_search_attribute_fulltext_value%5B%5D=',$search_array_by_class_attribute_id['350']['value'] ,'&Content_search_attribute_fulltext_classattribute_id%5B%5D=',352,'&Content_search_attribute_fulltext_value%5B%5D=',$search_array_by_class_attribute_id['352']['value'],'&Content_search_attribute_fulltext_classattribute_id%5B%5D=',440,'&Content_search_attribute_fulltext_value%5B%5D=',$search_array_by_class_attribute_id['440']['value'],'&Content_search_attribute_byrange_classattribute_id%5B%5D=',346,'&Content_search_attribute_byrange_from%5B%5D=',1,'&Content_search_attribute_byrange_to%5B%5D=',10000)

It seems to work.

Hope this help.

Laurent

Vidhi ashra

Monday 21 December 2009 8:32:10 pm

Hello Laurent,

Please let me know if you know a way to put dinamically values of &Content_search_attribute_byrange_to and &Content_search_attribute_byrange_from. In your example you put manually 1 and 10000.

I dont know how to pass values of the range on url, I've something like this:

{def $search_doc_date = concat( 'Content_search_attribute_byrange_classattribute_id[]'|urlencode,'=',343,
'&','Content_search_attribute_byrange_from[]'|urlencode,'=',$search_array_by_class_attribute_id['343']['value'], '&','Content_search_attribute_byrange_to[]'|urlencode,'=',$search_array_by_class_attribute_id['343']['value']
}

<input type="hidden" name="Content_search_attribute_byrange_classattribute_id[]" value="343" />
<input id="search_timestamp_from" type="hidden" name="Content_search_attribute_byrange_from[]" value="" />
<input id="search_timestamp_to" type="hidden" name="Content_search_attribute_byrange_to[]" value="" />

{include name=Navigator
uri='design:navigator/google.tpl'
page_uri='/content/advancedsearch/despachos'
page_uri_suffix=concat('?', $search_doc_date,'&SearchContentClassID=',$search_contentclass_id,'&SearchContentClassAttributeID=',$search_contentclass_attribute_id,'&SearchSectionID=',$search_section_id,$search_timestamp|gt(0)|choose('',concat('&SearchTimestamp=',$search_timestamp)),$search_sub_tree|gt(0)|choose( '', concat( '&', 'SubTreeArray[]'|urlencode, '=', $search_sub_tree|implode( concat( '&', 'SubTreeArray[]'|urlencode, '=' ) ) ) ),'&SearchDate=',$search_date)
item_count=$search_count
view_parameters=$view_parameters
item_limit=$page_limit}

Thanks for your atention

Waiting for reply

Vids

Vidhi

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu