New: Learn Statamic on Laracasts!

We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

Search results from multiple collections (paramater syntax)

Jon Hicks January 10, 2020 by Jon Hicks

I have a template where I want to restrict search results to specific collections, and just trying to get the syntax right. Here's what I have so far:

{{ search:results collection:is="collection-1|collection-2|collection-3" }}

However, this clearly isn't right as doesn't return any results, unless I just list one collection. Can anyone tell me the correct syntax?

Answered by Jack McDade!
>>>>>>> Answered <<<<<<<
2 Replies
2 Followers