Hello,
I am using Evo 1.0.14 with the inbuilt AjaxSearch 1.10.1 and I am stuck with a radio button problem.
Does anyone know how to use radio buttons in an AjaxSearch form to choose which section of a site to search?
I have found how to search just a particular section of a site using the &parents and the &depth parameters on the search page. This works fine to limit to just one section of the site.
Eg - &parents=`26` &depth=`2`
But what we'd like to do is give site users the ability to search from one of 3 sections of the website when using the AjaxSearch form - see attached image for a visual. Eg -
Rods: &parents=`26` &depth=`2`
Pods: &parents=`72` &depth=`3`
Sitewide: (no parent / no depth limit)
Any ideas on how to do this?
Thanks in advance.
My AjaxSearch calls are currently as follows...
header:
[!AjaxSearch? &landingPage=`8` &ajaxSearch=`0` &showResults=`0` &showIntro=`0`
&tplInput=`as-tpl-searchbox`
!]
search page:
[!AjaxSearch? &showInputForm=`0` &ajaxSearch=`0` &showIntro=`0` &pagingType=`0` &highlightResult=`0` &grabMax=`20` &minChars=`2`
&rank=`pagetitle:80,introtext:60,description:40,alias:20,content:30`
&tplGrpResult=`as-tpl-grpResult`
&tplResult=`as-tpl-result`
&tplResults=`as-tpl-results`
&tplPaging0=`as-tpl-paging`
!]
&tplInput:
<div id="search">
<form id="[+as.formId+]" action="[+as.formAction+]" method="post">
<input type="hidden" name="advsearch" value="[+as.advSearch+]" />
<input type="submit" name="submit" value="" title="Click to Search" />
<div><input type="text" name="search" value="" title="Enter terms" placeholder="[+as.inputValue+]"/></div>
<div class="options">
<label><input name="option[]" type="radio" value="Option 1" /><span>rods</span></label>
<label><input name="option[]" type="radio" value="Option 2" /><span>pods</span></label>
<label><input name="option[]" type="radio" value="Option 3" checked/><span>sitewide</span></label>
</div>
</form>
</div>
[ed. note: nickf08 last edited this post 12 years ago.]