This is not how it works. You can’t just randomly combine snippets and properties and hope that it works. The property &grSnippet
is specific to getArchives. SimpleSearch doesn’t use getResources/pdoResources. You can only use the properties SimpleSearch itself provides.
In general, if you want to achieve something specific like in this case, you’ll most likely have to start writing some custom code.
If you want to show the search results if there was a search and the exhibitions from a certain year otherwise, then for example write a snippet that checks the request parameters:
- If there is a request parameter “search”, then it is a search → run SimpleSearch
- If there is a request parameter “arc_year” → run getArchives to display the exhibitions from that year.
If you want to combine the search with the filtering, take a look a this topic for a possible solution: