once again ladies and gentlemen,
I have used ajax search on a remote site
here is the call:
[!AjaxSearch? &ajaxSearch=`0` &AS_landing=`92` &tplLayout=`ajaxlayout` &AS_showResults=`0` &tvPhx=`0` &showMoreResults=`0`!]
and here is the template:
[+as.showForm:is=`1`:then=`
<form [+as.formId+] action="[+as.formAction+]" method="post">
<input type="hidden" name="advSearch" value="[+as.advSearch+]" />
<label for="ajaxSearch_input">
<input id="ajaxSearch_input" class="cleardefault" type="text" name="search" value="[+as.inputValue+]"[+as.inputOptions+] />
</label>
<label for="ajaxSearch_submit">
<input id="ajaxSearch_submit" type="image" src="assets/templates/Theme/images/search.jpg" value="search"/>
</label>
</form>
`+]
[+as.showIntro:is=`1`:then=`<p class="ajaxSearch_intro" id="ajaxSearch_intro">[+as.introMessage+]</p>`+]
[+as.showResults:is=`1`:then=`[+as.results+]`+]
the landing page:
[!AjaxSearch? &AS_showForm=`0` &ajaxSearch=`0` &tvPhx=`0`!]
now what I get when the results are more than five is:
[+as.showResults:is=`1`:then=` [+as.noResults:is=`1`:then=`
`:else=`
This appears between the search results and the heading.
I’ve looked at the markup, but the [*content*] is within it’s own div, so I don’t think the heading’s style is effecting it.
I haven’t gotten to styling the landing page at all and as you can see, I made a simple call and added &tvPHX parameter...
I have already read two posts concerning this error here
http://modxcms.com/forums/index.php?topic=42074.0
and here
http://modxcms.com/forums/index.php?PHPSESSID=d4ab00ef6b49ccefa8c46f5f9d8ed29f&/topic,42498.msg254593.html#msg254593
but I haven’t been able to resolve it, the latter link seems to be the issue I want to resolve, but I am not quite understanding it...
p.s. I am on the generally available not the beta version of modx, and ajaxsearch is 1.8.4