We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 34162
    • 1 Posts
    Somehow I have a strange probling with the AjaxSearch highlighting option. I’ll try to explain.

    I have 3 websites set up the same way, using ModX 0.9.5 with AjaxSearch 1.1
    I also use the same call in my templates. For searching this is [!AjaxSearch?&AS_showResults=`0` &ajaxSearch=`0` &AS_landing=`56`!] and on the result page the call is [!AjaxSearch?&AS_showResults=`1` &AS_showForm=`0`!]

    On all 3 sites, in the search results, the highlights are showing as intended. When I click on a link, in all 3 cases the query string is passed to the corresponding page, i.e. hxxp://montessori.betaalbaresite.nl/home.htm&searched=age&highlight=ajaxSearch_highlight+ajaxSearch_highlight1
    On 2 sites the highlights are shown on that page, but on the 3rd site not. In the source code there’s simply no <span class="ajaxSearch_highlight ajaxSearch_highlight1">age</span>.

    I just can’t figure out why this is not working correctly on this site. Any hints?
      • 32393
      • 29 Posts
      I’m having this same issue... any thoughts anyone? The search works fine, but there’s no highlighting. I have the highlight plugin installed...
        • 29076
        • 615 Posts
        First, I recomand you to upgrade to the latest MODx version. I had problems with AjaxSearch highlight as well, but it was all solved on upgrade.
          I think, thererfor I am! But what I am, and why...?
          • 32393
          • 29 Posts
          I’m a dummy. I just didn’t have the CSS code correct. It works now.