calendar 5.x-2.x-dev
Download: calendar-5.x-2.x-dev.tar.gz
Size: 53 KB
md5_file hash: 48c91c9bb60aadf68ecfa87b224d0f0c
First released: January 29, 2008 - 16:28
Last updated: September 6, 2008 - 00:01
This is a completely new version of the Calendar module, designed to work with the new Date API version 2:
* All the calculations use the new, improved date and timezone handling added by Date API version 2 (see http://drupal.org/project/date for details).
* If the new Date Popup module is enabled, a jQuery popup date selector is available at the top of the page to allow you to easily jump to any year, month, and day.
* The calendar settings have been moved to the admin settings area instead of using a tab on the View. There were too many cases where the settings tabs weren't working correctly. Once a calendar view has been created, you can alter the settings on the settings page.
* New tables have been added to store calendar templates, and instead of using PHP to laboriously re-compute how to draw the calendar in each view, we just pull out the right template and drop the calendar values into it.
* The new templates have made it possible to get the 'week' view working correctly, no matter what day of the week your week starts on.
* Feed items are added in during views_pre_view so they are included for all types of displays, not just calendar displays.
* As much code as possible has been moved into separate .inc files so it is parsed only when you are actually on a calendar page.
Perpetual Calendar
The new calendar template system takes advantage of the concept of 'perpetual calendars'. No matter how many hundred years you go into the past or the future, there are only 14 possible templates for a year's calendar, one each for a year that starts on each day of the week, and an alternate for when the year is a leap year. Sites that start their week on Sunday will need a different template for any year than sites that start their week on Monday. You only have to figure out which template is needed for a year, and you have an instant calendar.
