neilp123 Reply #1, 10 months, 1 week ago
I'm using SimpleSearch 1.4.0 and MODx 2.1.1, and I'm having a problem getting the highlighting to work.
I've got it working on previous versions of MODx/SimpleSearch, but its not working for me at the moment on a new site I'm working on.
My SimpleSearchForm looks like:
And the SimpleSearch call on my landing page is:
Its actually applying the class to the first instance of the search term on the page, where it tells me how many results have been found i.e. 1 Results found for "icons". Well the term 'icons' does have the correct class applied to it, but not the results further down the page.
Any help?!
I've got it working on previous versions of MODx/SimpleSearch, but its not working for me at the moment on a new site I'm working on.
My SimpleSearchForm looks like:
[[!SimpleSearchForm? &tpl=`searchFormTpl` &method=`POST` &landing=`31`]]
And the SimpleSearch call on my landing page is:
[[!SimpleSearch? &ids=`16` &hideMenu=`0` &highlightResults=`1` &highlightClass=`orange` &pagingSeparator=`` &showExtract =`0` ]]
Its actually applying the class to the first instance of the search term on the page, where it tells me how many results have been found i.e. 1 Results found for "icons". Well the term 'icons' does have the correct class applied to it, but not the results further down the page.
Any help?!
Thanks for posting the solution here.