I’m using AjaxSearch 8.1.1 with the latest MODx install. Two Problems.
Here’s the code that appears on all pages:
[!AjaxSearch? &ajaxSearch=`0` &parents=`85` &AS_landing=`98` &AS_showResults=`0` &hideMenu=`0` &filter=`id,86,2|id,95,2|id,96,2|id,98,2`!]
Here’s the landing page (98) code:
<!--search_terms-->
[!AjaxSearch? &ajaxSearch=`0` &AS_showForm=`0` &parents=`85` &depth=`10` &AS_showResults=`1` &grabMax=`10` &extract=`1`&highlightResult=`1` &filter=`id,86,2|id,95,2|id,96,2|id,98,2`!]
1. How do I get ajaxSearch to return the correct path for the landing page?
I have the search box on all pages that appear within "mysite.com/85/…" The landing page is "mysite.com/85/98"
No matter what page a user is on, and s/he decides to search for a term, the same landing page and its correct path should always be returned. However, that’s not happening. For example if a user is on "mysite.com/85/89" and s/he searches, the path that gets returned is "mysite.com/85/85/98" (results in 404), but SHOULD be "mysite.com/85/98". Notice the redundant "85". This happens on every page except page "85" which correctly directs to "89." Make sense?
It looks like it has something to do with &parents=`85`. Do I need to edit some code somewhere in /snippts/ajaxSearch/… to make it an absolute path instead?
How do I correct this?
2. How do I get the search term to display in the landing page’s title?
In the landing page document, I have the option of displaying a title for it in the MODx title field. I just need to know the correct syntax to put in there. I should replace "whatgoeshere?" with what?
Title: Search Results for [+whatgoeshere?+]
Thanks in advance!