The next Desert Code Camp is scheduled for Saturday November 7th, 2009 at DeVry University. Great sessions, networking, food, and WIFI (yes WIFI) will be provided. So come out learn, teach, network. It will be great.
2149 W. Dunlap Ave (map)
Phoenix, Arizona 85021
Submit your talks, sessions, ideas for talks at the Desert Code Camp site.
On Twitter follow @DesertCodeCamp, @AZGroups, and @SEVDNUG for more information updates. Tweet up the event with the hashtag of #DCC09.
iCal feeds let you share your and/or import your events that are stored in Sitefinity. Here is a library that will let you generate an iCal feed from Sitefinity. Future versions of this library might have us filtering by categories or date.
iCal feed for Sitefinity iCal feed for Sitefinity
I’ve made a few changes since the last release to include some bug fixes.
- Added Google and Outlook friendly fields in the feed file to describe the iCalendar file as well as the publisher.
- Added code to the Location and Description fields to keep them at 75 characters or less to comply with the iCal specifications.
First you need to tell ASP.NET about your new handler. Open up the web config file and look for the httpHandlers section, it’s parent is system.web and add the following:
1: <add verb="GET" path="GetICSFile.ashx" type="SEVDNUG.Web.HttpHandlers.CalendarHandler, App_Code"/>
Note: The path name can be changed to any legal value like “feeds/ical.ashx” or “ical.ashx”.
Copy the vCalendar.cs and CalendarHandler.cs files to the App_Code directory of your Sitefinity installation.
Getting the event data from Sitefinity and creating the iCalender objects is handled inside the CalendarHandler class.
The class assumes that your events provider is named “Events”, if not you will have to change line 25 of the class.
The class maps the following fields to an iCalendar event.
||LocationName (Meta Field)
||Title (Meta field)
I believe these meta values are the default meta keys from Sitefinity. If your values differ, you can modify them on lines 64 and 65.