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.

Comparing Number Values in Weblog Search (1.6.x)

May 25, 2010 11:34am

Subscribe [2]
  • #1 / May 25, 2010 11:34am

    Wes Rice

    103 posts

    Is it possible to compare values while searching weblog fields?

    For example:

    {exp:weblog:entries custom_field:price="> 100" custom_field:price="< 150"}

  • #2 / May 25, 2010 3:25pm

    Ingmar

    29245 posts

    I am afraid that’s not an option, natively. You’d need some PHP, perhaps a custom query for that.

  • #3 / May 25, 2010 3:30pm

    Wes Rice

    103 posts

    Is it possible to add something like this to the query via an extension, or is that query protected and I will need to build my own query?

  • #4 / May 25, 2010 3:38pm

    Ingmar

    29245 posts

    It’s not protected, but the simplest way would probably be a simple SQL query. Moving to Howto.

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

ExpressionEngine News!

#eecms, #events, #releases