Hello,
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
We've moved the forum!
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
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!
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?
Solved using
$MenuTitle.XML.ContextSummary
$Title.XML.ContextSummary