Download the PHP package getherbie/plugin-simplesearch without Composer
On this page you can find all versions of the php package getherbie/plugin-simplesearch. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download getherbie/plugin-simplesearch
More information about getherbie/plugin-simplesearch
Files in getherbie/plugin-simplesearch
Package plugin-simplesearch
Short Description SimpleSearch Plugin for Herbie.
License BSD-3-Clause
Homepage https://github.com/getherbie
Informations about the package plugin-simplesearch
Herbie Simplesearch Plugin
Simplesearch is a Herbie plugin that allows you to provide your website with a simple but useful search engine.
Installation
The plugin is installed with Composer.
$ composer require getherbie/plugin-simplesearch
After that, the plugin can be activated in the configuration file.
plugins:
enable:
- simplesearch
Configuration
Under plugins.simplesearch.config
the following options are available.
Template paths to twig templates:
formTemplate: @plugin/simplesearch/templates/form.twig
resultsTemplate: @plugin/simplesearch/templates/results.twig
Use page cache, if caching is enabled:
usePageCache: false
Page properties
With the page property no_search
individual pages can be excluded from the search.
The page properties for such a page look like this:
---
title: My page
no_search: true
---
A complete search page looks like this:
---
title: Search
cached: false
hidden: true
---
# Search
{{ simplesearch_form() }}
{{ simplesearch_results() }}
Demo
A live demo can be viewed at https://herbie.tebe.ch/search