Enhancement Request - API to append original search string to links of results
I would like to be able to search for "cat in the hat" and in the results list of all the fields that contain "cat in the hat" to have that appended to the result href so that I could filter for it on the page to highlight the found text.
Enhancement Request - API to append original search string to links of results
I would like to be able to search for "cat in the hat" and in the results list of all the fields that contain "cat in the hat" to have that appended to the result href so that I could filter for it on the page to highlight the found text.
href might look like:
http://dtnaaiaas0093:50001/about/amenities/?r=cat+in+the+hat
I name the key "r" for return so that it doesn't trigger another search which I think it would if it were "q".
With that value I can easily check in Javascript for instances of "cat in the hat" and highlight them with some class on the page.
Hi Matt,
This should be easy to do. Edit the MacroPartials/ezSearch.cshtml file.
Look in the @helper RenderContentResult (around line 240) and modify the line
to something like:
HTH
Steve
is working on a reply...