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 →

How to apply URL base filter on search?

App February 12, 2019 by App

I want to restrict search functionality for some pages(of particular parent page). So if the page's URL contains a particular keyword then exclude them from search.

Somehow I am able to do the opposite of the above scenario by this. {{ search:results url:contains='/page-slug/' }}

But how can I check not_contains condition?

Answered by Erin Dalzell!
>>>>>>> Answered <<<<<<<
1 Reply