Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Strange simplesearch plugin config behavior

Started by Muut Archive 10 years ago · 1 replies · 441 views
10 years ago

I recently enabled multisite (possibly a coincidence) and shortly after noticed simplesearch stopped working (always returned 0 results). Looking at the plugin config in the debug panel I discovered that the filters setting is an array containing both my value in user/config/plugins/simplesearch.yaml and the value in the plugins default yaml file (which is 'category: blog'). This broke my search because I do not have a blog category in the site's taxonomy. Removing the filters: key from user/plugins/simplesearch/simplesearch.yaml (my multisites are symlinked here) resolved the issue.

As far as I know the correct behavior is for my config to override the plugins default config not result in a merged array both both configs. Am I missing something or is there some kind of bug here?

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 2562 9 years ago
Archive · by Muut Archive, 9 years ago
2 1689 9 years ago
Archive · by Muut Archive, 9 years ago
2 4980 9 years ago
Archive · by Muut Archive, 9 years ago
1 3803 9 years ago
Archive · by Muut Archive, 9 years ago
3 1798 9 years ago