Manaus Posted February 25, 2016 Posted February 25, 2016 Hello, I need to display the small chunks of text where the searched term resides, generally in the body of the article, like I am doing in this paragraph, so to speak And I don't have a clue Thanks!
Sergio Posted February 25, 2016 Posted February 25, 2016 Hi Manaus, take a look on this thread: https://processwire.com/talk/topic/1451-show-highlighted-search-keywords-in-search-results/
Manaus Posted February 25, 2016 Author Posted February 25, 2016 Thank you very much Sérgio for your suggestion. I'm half done: how do I display the small part of text, usually a paragraph, surrounding the searched term? Is it built in, or I have to make a js/php function etc?
Manaus Posted February 25, 2016 Author Posted February 25, 2016 I think I got it http://stackoverflow.com/questions/9373023/how-can-i-get-a-summary-string-around-a-search-query-within-a-longer-string Thanks! 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now