I'm really excited about this module. It looks and works great.
Everything is setup and working fine except I cant figure out how to configure it to only show specific days available for booking. Can you point me in the right direction?
According to reply #4 (near the bottom of the reply: found here http://drupal.org/node/345163 ), it can be done but I'm not sure how or where.
Thanks for the help!
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | calendar-day.tpl_.php_.patch | 789 bytes | threaders |
| #8 | calendar-month.tpl_.php_.patch | 854 bytes | threaders |
| #3 | calendar-day.tpl_.php_.patch | 1.77 KB | threaders |
| #3 | calendar-month.tpl_.php_.patch | 1021 bytes | threaders |
Comments
Comment #1
kenorb commentedCurrently module don't handle that, but patches are welcome.
But, you can do that in both ways:
1.
Simple write your hook_validation function for your node_form and just generate the error, that those dates are not available.
2.
If you using ui-datepicker popup, you can do that there.
Read documentation:
http://jqueryui.com/demos/datepicker/
and look how to restrict date range
Otherwise if you are not using ui-datepicker, you can do that manually in jQuery using AJAX to restrict your dates.
Tell me how it goes.
Comment #2
jeremyr commentedI'll give it a whirl see if I cant figure it out.
Comment #3
threaders commentedI also needed a method to mark days as not available. I created a new content type called "Not Available" and created "all day" content. I changed the month view to show not available as though it was fully booked. I changed the day view to show fully booked if an all day event was there.
See the attached patches to the theme files from dev release dated 16th May.
I did come across an issue with calendar, whereby the last day of a multi-day event is not displayed as "all day". Logged it http://drupal.org/node/465474
Comment #4
kenorb commentedThanks for a patch, but in my case $rows['all_day'][$column] is always NULL, so it can't be imploded, so I made additional conditions.
I don't understand why code looking for 'Available', it's some standard value of variable or name of content?
Anyway, committed to latest version, later can be improved.
Thanks.
http://drupal.org/cvs?commit=213134
Comment #5
threaders commentedThe code looks for 'Available', as the title of my new content type to deal with this is 'Not Available' and that is exposed in the calendar view. It didn't seem to work with the space, so I changed it to search for 'Available' instead - which worked.
Comment #6
kenorb commentedRelated issue: #482324: Fine Grained Settings per Content Type
Comment #7
GBain22 commentedHi,
Im looking for a way to only be able to book timeslots that are 2 days ahead of the current date? Is this possible? I also need to edit the hours on a Sunday that are available to book - but leave the rest of the week the same as I have chosen in the configuration.
Cheers, Garry.
Comment #8
threaders commentedI use these patches to limit bookings to 2 days in advance or greater. They are for Day and Month view. I don't have anything for the Week view as I don't use it.
Comment #9
GBain22 commentedCheers, much appreciated.
Is anyone aware that the calendar-week view doesn't look to the available timeslots? My "book now" link links to my site url as opposed to the individual day - I tried fiddling with the PHP but couldn't get anywhere.
Garry.
Comment #10
threaders commentedProbably best to raise a new issue for the calendar-week view.
Comment #11
kenorb commentedNew feature will continue here: #482324: Fine Grained Settings per Content Type
Added limiting dates by content type dates.