ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

exp:weblog:entries search parameter question

November 10, 2010 3:05pm

Subscribe [3]
  • #1 / Nov 10, 2010 3:05pm

    bmschaaf

    171 posts

    I am trying to use the search parameter to filter an events calendar.

    My problem is I want to exclude one item but include another.  So, for example I want to do something like:

    search:calendar_tags="not academic calendar" search:calendar_tags="prospective students"

    But, according to EE documentation I am not permitted to run search: on the same field.

    Thanks.

    I am running 1.7.0, build 20101018.

    Post edited by Moderator to correct link

  • #2 / Nov 11, 2010 10:21am

    Sue Crocker

    26054 posts

    Is your usecase the same as the pickles and shoes scenario?

    search:body=“not pickles&&shoes;”

    This example would return all entries that do not contain both the term “pickles” and the term “shoes”. It would still display entries that contain the word “pickles”, so long as the custom field did not also contain the word “shoes”.

  • #3 / Nov 11, 2010 10:48am

    bmschaaf

    171 posts

    Is your usecase the same as the pickles and shoes scenario?

    search:body=“not pickles&&shoes;”

    This example would return all entries that do not contain both the term “pickles” and the term “shoes”. It would still display entries that contain the word “pickles”, so long as the custom field did not also contain the word “shoes”.

    Hmm.  No, I don’t think so. But, after re-reading that phrase over and over- I am not certain.

    The results I desire do NOT contain the tag of “academic calendar” but DO include the tag “prospective students”.

    If I am reading the example provided above, I wouldn’t get results that contain “prospective students”.

    ...Right?  😉

  • #4 / Nov 11, 2010 6:15pm

    Brandon Jones

    5500 posts

    Hi Ben,

    This is a good candidate for the query module since it goes a little beyond what the search parameter supports. Does that help?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases