Hello,
I use snippet call below in a site resource to show result list and i want to show intro_message when there is no valid search (no keyword is set) but it shows nothing!
[!AjaxSearch? &AS_showForm=`0` &ajaxSearch=`0`!]
I checked ajaxSearch.class.inc.php lines to find problem.
<?php
221 else { // init the input field
222 $this->varLayout['showResults'] = 0;
223 $this->varLayout['showIntro'] = 1;
224 $this->varLayout['introMessage'] = $this->_lang['as_introMessage'];
225 } // end if not validSearch
226 } // end if showResults
In line 221 the ELSE statement is executes and sets
1 as value of
$this->varLayout[’showIntro’]. It leaves ELSE well BUT after second "
}", $this->varLayout is overwritten to form data (formid, result link, inputOption,...)! and there is no
$this->varLayout[’showIntro’] item...
Can any one help me?