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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Simplesearch on blog

Started by runs 8 years ago · 0 replies · 564 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 Thomas, 1 week ago
3 90 1 hour ago
Support · by Anna, 3 days ago
2 92 22 hours ago
Support · by Justin Young, 23 hours ago
1 40 23 hours ago
Support · by Duc , 1 week ago
2 98 6 days ago
Support · by Colin Hume, 1 week ago
2 90 6 days ago