<![CDATA[ [SOLVED] Need AjaxSearch results on separate page - My Forums]]> https://forums.modx.com/thread/?thread=87119 <![CDATA[ [SOLVED] Need AjaxSearch results on separate page]]> https://forums.modx.com/thread/87119/need-ajaxsearch-results-on-separate-page#dis-post-479965 http://modx.com/extras/package/ajaxsearch. I have created a landing page (resource) with the snippet call: [!AjaxSearch? &showInputForm=`0`&showResults=`1`&ajaxSearch=`1`!]

I also created a chunk for the Search and have the following there:

<div class="header_soc_search clearfix">
<div class="header_search">
[!AjaxSearch? &showResults=`1` &landingPage=`20` &showMoreResults=`1` &moreResultsPage=`20`!]
</div>

When I do a test search it generates results, but it shows up on the same page instead of going to a separate page. For example, if I'm on the home page and do a search, the results show there and push everything down below the header. I can't figure out what I'm doing wrong. I am a newbie so I'm still trying to figure out how all this works. Can someone please help me?]]>
saplingdesigns Oct 11, 2013, 12:58 AM https://forums.modx.com/thread/87119/need-ajaxsearch-results-on-separate-page#dis-post-479965
<![CDATA[Re: [SOLVED] Need AjaxSearch results on separate page]]> https://forums.modx.com/thread/87119/need-ajaxsearch-results-on-separate-page#dis-post-480419 . Any chance you could help me on a few other issues I am having?]]> saplingdesigns Oct 16, 2013, 01:21 PM https://forums.modx.com/thread/87119/need-ajaxsearch-results-on-separate-page#dis-post-480419 <![CDATA[Re: Need AjaxSearch results on separate page]]> https://forums.modx.com/thread/87119/need-ajaxsearch-results-on-separate-page#dis-post-480416 Quote from: sottwell at Oct 11, 2013, 08:28 PM
You need to specify &showResults=`0` in the upper right snippet. I presume this is in your template.

This may prove useful, although I'm not sure if there are more recent versions available now.

Thank you Sottwell. I will try this.]]>
saplingdesigns Oct 16, 2013, 01:03 PM https://forums.modx.com/thread/87119/need-ajaxsearch-results-on-separate-page#dis-post-480416
<![CDATA[Re: Need AjaxSearch results on separate page (Best Answer)]]> https://forums.modx.com/thread/87119/need-ajaxsearch-results-on-separate-page#dis-post-480069
This may prove useful, although I'm not sure if there are more recent versions available now.]]>
sottwell Oct 11, 2013, 08:28 PM https://forums.modx.com/thread/87119/need-ajaxsearch-results-on-separate-page#dis-post-480069
<![CDATA[Re: Need AjaxSearch results on separate page]]> https://forums.modx.com/thread/87119/need-ajaxsearch-results-on-separate-page#dis-post-480067 Quote from: sottwell at Oct 11, 2013, 05:22 AM
To show the results in a separate page you need to turn the AJAX part of AjaxSearch off for the search form:
[!AjaxSearch? &ajaxSearch=`0` &landingPage=`20`!] 


Then on your landing page you need another AjaxSearch snippet call to process the search form's values and (optionally) not show the form again:
[!AjaxSearch? &ajaxSearch=`0` &showInputForm=`0`!]



Thank you Sottwell! This worked great for getting the results onto a second page. Unfortunately, now there are two sets of results showing up - one above and below the nav menu (see screenshot). Any ideas on what I may be doing wrong?]]>
saplingdesigns Oct 11, 2013, 07:39 PM https://forums.modx.com/thread/87119/need-ajaxsearch-results-on-separate-page#dis-post-480067
<![CDATA[Re: Need AjaxSearch results on separate page (Best Answer)]]> https://forums.modx.com/thread/87119/need-ajaxsearch-results-on-separate-page#dis-post-479976
[!AjaxSearch? &ajaxSearch=`0` &landingPage=`20`!] 


Then on your landing page you need another AjaxSearch snippet call to process the search form's values and (optionally) not show the form again:
[!AjaxSearch? &ajaxSearch=`0` &showInputForm=`0`!]


]]>
sottwell Oct 11, 2013, 05:22 AM https://forums.modx.com/thread/87119/need-ajaxsearch-results-on-separate-page#dis-post-479976