MadeMyDay Reply #1, 6 years ago
Hi,
I just modificated the FlexSearchForm a bit and think perhaps someone is interested in it
My problem was that I built a site and didn´t fill out the description of the pages and so the search results are not that informative (as the results on the modxcms page). That was the first time I found something that joomla does better, so I transferred that functionality to modX.
What it does: With displaying search results you´ll get an extract of the context with highlighted search term. Also multiple words are possible and are highlighted the google way
See example here:
www.mademyday.de/ifa
Search for example for "familie" (german site), you will see what it does.
In the snippet you can configure the variable $extract to either true or false, which will (surprise!) show the extract or not. There are two CSS classes used, FSF_extract for the div container with the extract and a span class called FSF_highlight for highlighting the text in this extract (yellow background in the example above)
This is not the standard FSF, I translated some words and changed a few settings, but I think you guys will get it (no time to put in the standard FSF yet).
Greetz Marc
EDIT: New version with different colors for every phrase (FSF_highlight1, FSF_highlight2 etc.)
I just modificated the FlexSearchForm a bit and think perhaps someone is interested in it
My problem was that I built a site and didn´t fill out the description of the pages and so the search results are not that informative (as the results on the modxcms page). That was the first time I found something that joomla does better, so I transferred that functionality to modX.What it does: With displaying search results you´ll get an extract of the context with highlighted search term. Also multiple words are possible and are highlighted the google way
See example here:
www.mademyday.de/ifa
Search for example for "familie" (german site), you will see what it does.
In the snippet you can configure the variable $extract to either true or false, which will (surprise!) show the extract or not. There are two CSS classes used, FSF_extract for the div container with the extract and a span class called FSF_highlight for highlighting the text in this extract (yellow background in the example above)
This is not the standard FSF, I translated some words and changed a few settings, but I think you guys will get it (no time to put in the standard FSF yet).
Greetz Marc
EDIT: New version with different colors for every phrase (FSF_highlight1, FSF_highlight2 etc.)
