The extension adds a form to your Blog and BlogPost pages to search the blog based on category or a search term.
Just use $BlogSearchForm
in Blog.ss
and BlogPost.ss
.
Run the following to add this module as a requirement and install it via composer.
composer require "webfox/silverstripe-blog-search"
The blog search form extension get applied automatically, and the form will have both a keyword and category search. However you can disable either component as below:
WebFox\BlogSearch\Form\BlogSearchForm:
keyword: false
category: false
then browse to /dev/build?flush=all
- Silverstripe 4.0+
For Silverstripe 3.0+ support please see the v1.0 branch.