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

Support archive

Low Search start_on and stop_before on expiration dates

TJ Draper 1 Aug 2014 03:34 question, complete

I’m needing to add an expiration date filter to a particular Low Search the same way start_on and stop_before works for entry date. I've tried using range from like this:

range-from:expiration_date=1406843863

But that does not seem to work. Any thoughts or ideas on this?

Replies

  1. Low 1 Aug 2014 17:15

    How are you using that parameter? Like a proper param on the Results tag? Then you should add quotes:

    {exp:low_search:results range-from:expiration_date="1406843863"}
    Or as a hidden input field? Then you should use this syntax:
    <input type="hidden" name="range-from:expiration_date" value="1406843863">
    Note that using the range-from param will mean you're looking for entries with an expiration_date >= 1406843863.

  2. Low 1 Aug 2014 17:17

    If that doesn't work, try and use a date string to represent the date, like YYYY-MM-DD HH:ii.