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

Simplesearch on blog

Started by runs 8 years ago · 0 replies · 636 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 488 6 days ago
Support · by Lauw, 1 week ago
2 104 7 days ago
Support · by Anna, 3 weeks ago
4 427 1 week ago
Support · by gtx, 4 weeks ago
4 378 3 weeks ago
Support · by Anna, 1 month ago
9 485 4 weeks ago