Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Simplesearch on blog

Started by runs 8 years ago · 0 replies · 666 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 blu3prince, 4 days ago
1 71 6 hours ago
Support · by complanar, 7 days ago
6 157 2 days ago
Support · by Rick Beebe, 7 days ago
2 117 3 days ago
Support · by alex, 5 days ago
2 101 4 days ago
Support · by Marcel, 2 weeks ago
1 152 5 days ago