Excluding particular entries from a collection
Hey Low
Apologies if I'm missing something basic here. I have a channel that has a bunch of content pages, including pages like site map, page not found, which I don't want in the results.
How can I set certain entries to be excluded from search?
Thanks
Replies
Low 20 Mar 2013 13:13
You can use the entry_id or url_title parameters in the Results tag, just like you would with the native channel:entries tag. So something like url_title="not sitemap|error-404" or entry_id="not 1|2|3" should work.
Russ Back 20 Mar 2013 14:15
Awesome, thanks.