Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Simplesearch on blog

Started by runs 8 years ago · 0 replies · 700 views
8 years ago

I am not able to do a search in a blog avoiding the /search page of results. I put this on 'blog.md':

YAML
---
title: 'My blog'
dateformat: 'd-m-Y H:i'
content:
items: '@self.children'
order:
    by: date
    dir: desc
pagination: true
limit: 10
simplesearch:
    route: @self
    filters:
      - '@self.children'
    filter_combinator: and
---

The url is OK: 'http://my-site/blog/query:word'. But the search result is the entire /blog, does not filter anything.

Also I tried as filter: @self

Any help or tip? Thanks.

last edited 04/30/18 by runs

Suggested topics

Topic Participants Replies Views Activity
Support · by webmasterodp, 7 days ago
4 153 6 days ago
Support · by nwhitfield, 1 week ago
2 133 1 week ago
Support · by stell, 3 weeks ago
5 369 2 weeks ago
Support · by gravinator, 1 month ago
5 558 2 weeks ago
Support · by Gravver, 3 weeks ago
6 346 3 weeks ago