getgrav / getgrav/grav-plugin-simplesearch
simplesearch search results page (route? problem)
- Dominant language
- PHP
- Stars
- 46
- Forks
- 55
- Avg merge
- 5h 44m
- Merged PRs (30d)
- 1
Description
Hello!
I'm just not able to make it work. :(
Grav and simple search are the latest version, the simplesearch.yaml is here:
```
enabled: true
built_in_css: true
display_button: false
min_query_length: 3
route: /search
search_content: rendered
template: simplesearch_results
filters:
category:
- none@
filter_combinator: and
ignore_accented_characters: false
order:
by: date
dir: desc
```
you can check the site [here](https://tozsdeabc.bet.hu)
search queries looks this [way](https://tozsdeabc.bet.hu/?query=index)
And if you include the /search as the config suggest it's ok:
[check](https://tozsdeabc.bet.hu/search?query=index)
I already tried evey suggestion. The js is loaded, the index is ok, the results are perfect....
Searchbox looks like this:
```
{% include 'partials/simplesearch_searchbox.html.twig' %}
```
The searchbox twig is basically the same as original:
```
0 %} min="{{- min_chars -}}" {% endif %}
required
placeholder="{{"PLUGIN_SIMPLESEARCH.SEARCH_PLACEHOLDER"|t}}"
value="{{ query }}"
data-search-invalid="{{ "PLUGIN_SIMPLESEARCH.SEARCH_FIELD_MINIMUM_CHARACTERS"|t(min_chars)|raw }}"
data-search-separator="{{ config.system.param_sep }}"
data-search-input="{{ base_url }}{{ config.plugins.simplesearch.route == '@self' ? '' : (config.plugins.simplesearch.route == '/' ? '' : config.plugins.simplesearch.route) }}"
/>
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.