SearchViewHandling=default|template
This setting has two options
This setting is taken in consideration in the default search templates, by the use of $use_template_search variable, as shown in the following example:
{def $search=false()} {if $use_template_search} {set $page_limit=10} {set $search=fetch(content,search, hash(text,$search_text, section_id,$search_section_id, subtree_array,$search_sub_tree, class_id,$search_contentclass_id, class_attribute_id,$search_contentclass_attribute_id, offset,$view_parameters.offset, publish_date,$search_date, limit,$page_limit))} {set $search_result=$search['SearchResult']} {set $search_count=$search['SearchCount']} {set $stop_word_array=$search['StopWordArray']} {set $search_data=$search} {/if}
Note: Some of the default search templates use an if condition, others use section. Be aware that section is an already deprecated template control structure.
Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2013 eZ Systems AS (except where otherwise noted). All rights reserved.