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.

Help: How to add a calendar to a search.?

September 07, 2007 11:36am

Subscribe [1]
  • #1 / Sep 07, 2007 11:36am

    eeuser

    10 posts

    Hi,
    I am using the default search the comes with the EE EE Default advancedh search example

    I am trying to add 2 calendars to do a date range search, where the user can select the start and the end date. Can this be done in EE?  i would appreciate step by step example

    Instead of the default date range listed below that comes with EE search


    <fieldset class=“fieldset”>
    <legend>{lang:search_entries_from}</legend>

    <select name=“date” [removed]>
    <option value=“0” selected=“selected”>{lang:any_date}</option>
    <option value=“1” >{lang:today_and}</option>
    <option value=“7” >{lang:this_week_and}</option>
    <option value=“30” >{lang:one_month_ago_and}</option>
    <option value=“90” >{lang:three_months_ago_and}</option>
    <option value=“180” >{lang:six_months_ago_and}</option>
    <option value=“365” >{lang:one_year_ago_and}</option>
    </select>

    <div class=“default”>
    <input type=‘radio’ name=‘date_order’ value=‘newer’ class=‘radio’ checked=“checked” /> {lang:newer}
    <input type=‘radio’ name=‘date_order’ value=‘older’ class=‘radio’ /> {lang:older}
    </div>

    </fieldset>

    thanks in advance

  • #2 / Sep 09, 2007 11:34am

    Robin Sowell

    13255 posts

    No- I don’t believe I’ve seen anyone integrate a calendar for the search.  It wouldn’t be hard to get the javascript on the page- I wrote an extension to pull it into the SAEF.  HOWEVER- the default js is going to insert the date- which isn’t what you want for the above.  So- you’d most likely need to write your own js.  It’s not a project I’d want to tackle- but my js skills are weak.

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

ExpressionEngine News!

#eecms, #events, #releases