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.

search:body understanding

July 27, 2012 2:36pm

Subscribe [1]
  • #1 / Jul 27, 2012 2:36pm

    Marcuse

    166 posts

    tried this
    search:body=”=not somethingX” or search:title=”=not somethingX”

    {exp:channel:month_links channel="{embed:the_channel}" search:body="=not somethingX"}
         <a href="http://{path=">{month}, {year}</a>
    
    {/exp:channel:month_links}


    but still display entry’s with the “somethingX” text into the title

    Do I don’t understand this option or does I do something wrong

  • #2 / Jul 29, 2012 7:41pm

    Lisa Wess

    20502 posts

    Hi, Marcuse,

    title is a not a custom field, and the search: parameter works on only custom fields - of certain types, at that.

    The Search Fields add-on may help you out here.

  • #3 / Jul 31, 2012 2:44pm

    Marcuse

    166 posts

    Is there a way to not show a entry if some keyword are used?

  • #4 / Jul 31, 2012 2:50pm

    Lisa Wess

    20502 posts

    If it is in a custom field of type textarea or text input box, or drop-down, then yes, you’d use the search:// parameter with not:

    {exp:channel:entries: channel="news" limit="5" search:body="not keyword"}

    Does that help?

  • #5 / Jul 31, 2012 2:56pm

    Marcuse

    166 posts

    Thanks work now used wrong quotes

  • #6 / Jul 31, 2012 3:01pm

    Lisa Wess

    20502 posts

    Straight quotes are important - curly quotes can be quite hard to stop but do indeed stop the tag from functioning.

    I’m glad you got it all worked out!  Please start a new thread if you need anything else.  Thank you!

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

ExpressionEngine News!

#eecms, #events, #releases