Manaus Posted February 25, 2016 Share 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! Link to comment Share on other sites More sharing options...
Sergio Posted February 25, 2016 Share 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/ Link to comment Share on other sites More sharing options...
Manaus Posted February 25, 2016 Author Share 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? Link to comment Share on other sites More sharing options...
Manaus Posted February 25, 2016 Author Share 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 Link to comment Share on other sites More sharing options...
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