2017 © Pedro Peláez
 

herbie-plugin plugin-simplesearch

SimpleSearch Plugin for Herbie.

image

getherbie/plugin-simplesearch

SimpleSearch Plugin for Herbie.

  • Monday, November 27, 2017
  • by getherbie
  • Repository
  • 0 Watchers
  • 2 Stars
  • 806 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 5 Versions
  • 8 % Grown

The README.md

Herbie Simplesearch Plugin

Simplesearch is a Herbie plugin that allows you to provide your website with a simple but useful search engine., (*1)

Installation

The plugin is installed with Composer., (*2)

$ composer require getherbie/plugin-simplesearch

After that, the plugin can be activated in the configuration file., (*3)

Configuration

The following options are available in the configuration file., (*4)

return [
    // a comma-separated list of plugins to be activated
    'enabledPlugins' => 'simplesearch',
    'plugins' => [        
        'simplesearch' => [
            'config' => [
                // path to twig form template
                'formTemplate' => '@plugin/simplesearch/templates/form.twig',
                // path to twig results template
                'resultsTemplate' => '@plugin/simplesearch/templates/results.twig',
                // use page cahe if global caching is enabled
                'usePageCache' => false,
            ],
        ],
    ],
];

Please note that the above configuration is only part of the overall configuration., (*5)

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:, (*6)

---
title: My page
no_search: true
---

A complete search page looks like this:, (*7)

---
title: Search
cached: false
hidden: true
---

# Search

{{ simplesearch_form() }}

{{ simplesearch_results() }}

Demo

A live demo can be viewed at https://herbie.tebe.ch/search, (*8)

The Versions

27/11 2017

dev-master

9999999-dev https://www.getherbie.org

SimpleSearch Plugin for Herbie.

  Sources   Download

BSD-3-Clause

The Requires

 

plugin search herbie simplesearch

05/04 2016

v1.0.0

1.0.0.0 http://www.getherbie.org

SimpleSearch Plugin for Herbie.

  Sources   Download

BSD-3-Clause

The Requires

 

plugin search herbie simplesearch

04/02 2015

v0.7.0

0.7.0.0 http://www.getherbie.org

Herbie Plugin Simplesearch

  Sources   Download

BSD-3-Clause

The Requires

 

plugin search herbie simplesearch

03/01 2015

v0.6.0

0.6.0.0 http://www.getherbie.org

Herbie Plugin Simplesearch

  Sources   Download

BSD-3-Clause

The Requires

 

plugin search herbie simplesearch

11/12 2014

v0.5.0

0.5.0.0 http://www.getherbie.org

Herbie Plugin Simplesearch

  Sources   Download

BSD-3-Clause

The Requires

 

plugin search herbie simplesearch