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.

Quick Weblog 'search:field_name=' Question

January 27, 2011 4:46pm

Subscribe [2]
  • #1 / Jan 27, 2011 4:46pm

    Related to http://expressionengine.com/legacy_docs/modules/weblog/parameters.html#par_search

    I know you can use multiple searches and combine different custom fields in your search, however I’m trying to use the “OR” statement. Is it possible?

    My current tag:

    {exp:weblog:entries weblog="events" disable="categories|member_data|trackbacks|pagination" dynamic="off" orderby="event-date" sort="desc" limit="5" search:event-photos="not IS_EMPTY" search:event-video="not IS_EMPTY"}

    What I need it to do is display results if only 1 of the searched fields is not empty, not both, as in the example above.

    Martin

  • #2 / Jan 28, 2011 10:35am

    Ingmar

    29245 posts

    I am afraid there is no built-in way to connect multiple instances of the search= parameter with OR. They all need to pass in order for the search to match.

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

ExpressionEngine News!

#eecms, #events, #releases