Postponed
Project:
Availability Calendars
Version:
7.x-4.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
29 Nov 2011 at 10:29 UTC
Updated:
29 Mar 2014 at 16:41 UTC
Jump to comment: Most recent
Comments
Comment #1
fietserwinWhat you can do is implement this theme preprocess hook:
Make sure that you don't increase this setting OR that you execute before availability_calendar's own theme preprocess hook, as this hook reads the availability from the database and if it reads to few, behaviour will be undefined. You can assure so by implementing these lines of code into the preprocess functions for both theme availability_calendar and theme availability_calendar_viewport.
I'll leave this request open for now as I might implement it in the future.
Comment #2
fietserwinComment #3
daskog commentedWhat file do i edit..? and a little before after snippet would help me understand the implementation.
Thanks in advance.
Comment #4
daskog commentedAnyone?
Comment #5
fietserwinCreate a custom module to implement the theme preprocess as above. I leave the date arithmetic up to you.
Comment #6
daskog commentedLet me start with saying thank you for your feedback.
This works, but how to set the starting month to January, how would the actual string on numbers look like?
Comment #7
fietserwinShowing past dates is a different issue, though probably a bit related. You can set the start year and month via the similarly named variables, but that will still show all past dates as "past dates" thus hiding the actual availability.
There is another issue to show past dates : #1490928: Showing dates in the past.
If you just want to continue, you can override this module's theme function. See e.g.: https://drupal.org/node/1621416. Patches are welcome though for the other issue.