Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Template Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Highlight search query in the page title

Go to End

4 Posts   1411 Views


Community Member, 4 Posts

24 June 2013 at 9:54am

I'm new to Silverstripe and i am trying to highlight the search results when the query string appears in the page title.
(I have managed to highlight the content text using ContextSummary and adding CSS for span.highlight)
How can this be done?
Thank you


Community Member, 349 Posts

25 June 2013 at 8:49pm

You can find your answer here

Arvixe Web Hosting / SilverStripe Community Liaison | Looking for quality SilverStripe Web Hosting? Look no further than Arvixe Web Hosting!


Community Member, 4 Posts

27 June 2013 at 7:24pm

Thank you Webdoc,
but that page only highlights in the content part i want to also highlight the results in $Title. but ContextSummary doesn't work with title so maybe i have to add php code?


Community Member, 4 Posts

30 June 2013 at 3:33am

Solved using