Event Calendar for GraffitiCMS
I did some brief searching for an event calendar for GraffitiCMS, but I didn't find anything that quite fit the bill. What I wanted was to to be able mark a post as an event (as in with a date) and then be able to show some information about that event in the sidebar, in calendar format.
So, after a a couple of hours, here's what I came up with and the steps to set this up
- Set up a Custom Field for posts named Event Date and make it be a DateTime type
- Edit a post (that you would consider to be an event) with an event date
- Put the DPenton.Graffiti.Chalk.dll in your bin folder
- Use $DPentonChalk.BuildCalendar() in your sidebar theme file (or wherever you want to put it).
This will build the calendar and cache those results for 10 minutes, based on the year/month that is being searched.
Let me know what you think about it!
UPDATE (6 Sep 2008): I added a "back" arrow to the calendar.