For whatever reason I can’t seem to get the https://github.com/getgrav/grav-plugin-simplesearch#2-self-controlled-search-page option to replace the page collection with search results. I’ve followed all the instructions without luck.
I.e, I have a blog.md
, listing a couple of children blog items:
title: blog
simplesearch:
route: /blog
filters:
- @self
content:
items: @self.children
order:
by: date
dir: desc
The search bar is included with {% include 'partials/simplesearch_searchbox.html.twig' %}
Now whenever I do a search on this page (blog.md
), it routes to the same page resulting in ./blog/query:mysearchstring
That’s all good, however listed blog items on the page remains the same. If I understand the doc correctly, it should replace the page collection with items from the search results?
I’ve tried with and without category filters in /plugins/simplesearch/simplesearch.yaml
to no avail.
Side question: Is there any way to get this plugin to perform live search as query is typed?
Cheers!