exclusive date selection
We are working on a site where the client wants visitors to be able to request an event date (using calendar + date), but only be able to choose from dates that haven't been booked already. Ideally, the submitting visitor would see available dates on a calendar when filling out the node, or the unavailable dates would be grayed out, etc.... Any experience with this or recommendations? Thank you - Kate Pojeta Lansing iT kp@lansingit.com
Hi Kate, You could use the Jquery datepicker to display your calendar. - print out an array of booked dates - when calling datepicker, pass in the parameter "beforeShowDay" that takes in a function ie. $(this).datepicker({ beforeShow: customRange, changeMonth: true, changeYear: true, beforeShowDay: reservedDays }); where "reservedDays" will cycle through your array and return true for false to enable/disable the date. To see it in action , check out http://vancouver.rlisting.com/ - you'll need to register and then create a listing - then add bookings. cheers On Tue, Jan 18, 2011 at 6:42 PM, Kate Pojeta <kp@lansingit.com> wrote:
We are working on a site where the client wants visitors to be able to request an event date (using calendar + date), but only be able to choose from dates that haven't been booked already. Ideally, the submitting visitor would see available dates on a calendar when filling out the node, or the unavailable dates would be grayed out, etc.... Any experience with this or recommendations?
Thank you -
Kate Pojeta Lansing iT kp@lansingit.com
-- Golf's three ugliest words: still your shot. ~ Dave Marr
It might be possible to do it simply by editing the calendar view and its selection criteria. If not, a custom module can do it. On 01/18/2011 09:42 PM, Kate Pojeta wrote:
We are working on a site where the client wants visitors to be able to request an event date (using calendar + date), but only be able to choose from dates that haven't been booked already. Ideally, the submitting visitor would see available dates on a calendar when filling out the node, or the unavailable dates would be grayed out, etc.... Any experience with this or recommendations?
Thank you -
Kate Pojeta Lansing iT kp@lansingit.com
participants (3)
-
jeff@ayendesigns.com -
Kate Pojeta -
Ken Yiem