Today I was working on a Drupal site that involved having multiple calendars throughout different parts of the site. I used CCK's Date module, the Calendar module and Views to do this. One thing I found frustrating was that I couldn't create a custom view using the calendar module and keep the date navigation attachments (see this issue). This is a small tweak I came up with that adds links, at the theme level, to handle date navigation links as well as filtering by taxonomy term id.
Comments
Great code, saved me alot of
Great code, saved me alot of headaches. Thanks!
Found a couple of bugs :
line 64 should be "$prevYear = $thisYear; "
line 69 should be "$nextYear = $thisYear; "
Hi Choy - thanks for spotting
Hi Choy - thanks for spotting that! I've uploaded a new version including your changes.
Add new comment