Provides search input functionality that hooks into the site
As of v6.0.0, cms-search will now inject <mark> snippets
around matched results.
To load this plugin, add the following to the extras block in your
config.php or
theme settings.php:
'extras' => [
// ...
'cms-search' => [],
// ...
],
N/A
N/A
<input is="cms-search" type="posts"/>
Attributes
type - The type of collection to searchMatching text is wrapped in <mark data-cms-search> tags in the rendered
search results. You may override the default highlight appearance:
mark[data-cms-search] {
background-color: #fff9c4;
border-radius: 2px;
}