[[+content_image]]
I
I
iAlex1952019-04-12 10:01:11
MODX
iAlex195, 2019-04-12 10:01:11

Why is the SimpleSearch search term not highlighted?

There is no highlighting of the searched word in the search results.
Calling the snippet on the results page:

[[!SimpleSearch?
                        &tpl=`simpleSearchResTpl`
                        &includeTVs=`1`
                        &processTVs=`1`
                        &noResultsTpl=`noResTpl`
                        &perPage=`0`
                        ]]

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
A
Alexander Lunegov, 2019-04-12
@iAlex195

It does not highlight, but only wraps in a span tag and only in the text that is displayed through the placeholder [[+extract]] . And it is also case sensitive. That is, when searching for the word "test" in the output of the results, the word "Test" will not be highlighted.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question