All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Excluding particular entries from a collection

Russ Back 20 Mar 2013 11:34 question, complete

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

  1. 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.

  2. Russ Back 20 Mar 2013 14:15

    Awesome, thanks.