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

Simplesearch on blog

Started by runs 8 years ago · 0 replies · 635 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 Paul Hodges, 4 weeks ago
19 487 6 days ago
Support · by Lauw, 7 days ago
2 104 7 days ago
Support · by Anna, 3 weeks ago
4 426 1 week ago
Support · by gtx, 4 weeks ago
4 377 3 weeks ago
Support · by Anna, 1 month ago
9 484 4 weeks ago