Skip to content
Grav 2.0 is officially stable. Read the announcement →
Plugins

Simplesearch Self-Controlled Page configuration doesn't work: it always display results even before launching a search

plugins

Started by SiM 5 years ago · 2 replies · 535 views
5 years ago

Hi,

I'm trying to configure Simplesearch to have Self-Controlled Search Page, according to https://github.com/getgrav/grav-plugin-simplesearch#2-self-controlled-search-page.

I have a simple blog page, where I have added a simplesearch header as described on the doc:

YAML
title: Blog
content:
  items: '@self.children'
  limit: 5
  order:
    by: date
    dir: desc
  pagination: true
  url_taxonomy_filters: true
simplesearch:
  process: true
  route: '@self'
  filters:
    - '@self'
  filter_combinator: and

And now when I go on the blog page, I no longer have the list of my articles but the display of the results (which is empty because I did not launch a search).
I see in the debug bar that simpleearch_result is called : info Routed to page /blog (type: simpleearch_results).
If I understand what is written in the doc, it is the blog template that should be called instead, even if a search is launched from this page (and in this case the collection is replaced by the search results).

I guess I'm missing something... so your help is welcome 🙂

I'm using Grav v.1.7.7 and SimpleSearch v2.2.1 (with default settings)
Reproduced with grav skeleton onepage site

5 years ago

@kolsim, I cannot get it to work either...

There are old issues reported (#51, #118) in 2016/2017 resembling yours. A fix was suggested, but I cannot get that to work either (Antimatter, nor Quark).

You might consider creating a new issue.

5 years ago

Thank you for your response @pamtbaau

So I have opened an issue: #197

To be continued 🙂

Suggested topics

Topic Participants Replies Views Activity
Plugins · by Rene, 1 week ago
2 80 1 week ago
Plugins · by Xavier, 4 weeks ago
2 84 4 weeks ago
Plugins · by Luka Prinčič, 7 years ago
3 1210 1 month ago
Plugins · by Sebastian van de Meer, 1 month ago
1 77 1 month ago
Plugins · by PIERROT Alain, 2 months ago
3 104 2 months ago