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.

Advanced search year and month parameters

November 11, 2011 6:40pm

Subscribe [3]
  • #1 / Nov 11, 2011 6:40pm

    Rob Allen

    3114 posts

    EE2.3.1

    It seems that searching Keywords and custom search fields for “year” and “month” won’t work.

    {exp:search:advanced_form result_page="orders/search" channel="purchased_items" status="open|complete" show_expired="yes"}
    <input type="hidden" name="search_in" value="everywhere" />
    <input type="hidden" name="where" value="any" /> 
    <input type="text" name="keywords" />
    <input type="text" name="year" />
    <input type="text" name="month" />
    <input type="submit" value="Go" />
    {/exp:search:advanced_form}

    Where foo (keyword) 2011 (year) 10 (month) should return results.

    Any ideas on how I can filter search by year and month?

     

  • #2 / Nov 14, 2011 4:01am

    John Henry Donovan

    12339 posts

    Hi Rob,

    Did this work previously for you? I can’t recall custom fields working like this in the Advanced search form.
    The only date selection would be the should be the date field allowing you to search a certain number of days ago and then filter desc or asc

    I would maybe look at SuperSearch here or change your workflow to set up a filter on the results page itself for the date range

  • #3 / Nov 16, 2011 3:19pm

    Rob Allen

    3114 posts

    Hi John

    No this is the first time I’ve tried it, shame it doesn’t work - anyhow I have found another method of outputting the data!

  • #4 / Nov 18, 2011 7:31pm

    Sean C. Smith

    3818 posts

    Rob,

    Good to hear you’ve got it working now. don’t hesitate to post again when needed.

    Sean

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

ExpressionEngine News!

#eecms, #events, #releases