CS2007: Event Calendar Features
UPDATE 06/05/2007:
Added support for tags in the form of , added the change to the resources.xml file that was left out, and changed the formatting of dates to require MM/DD/YYYY. Leading zeros are no longer optional.
To use this control, you will need to place the following register line at the top of your page:
<%@ Register TagPrefix="WGB" Namespace="WGB.CSAddons.Controls" Assembly="WGB.CSAddons" %>
Here is a typical use of the control:
<WGB:EventCalendar ID="EventCalendar" Tag="div" Width="100%" DayCssClass="dbday" CalendarCssClass="dbcalendar" MonthCssClass="dbmonth" DayHeaderCssClass="dbdayheader" CalendarTitleCssClass="dbtitle" OtherMonthDayCssClass="dbothermonthday" HyperLinkCssClass="dbpostlink" style="text-align: center;" runat="Server" />
To add events to the calendar, place either of the following in the body of your post:
-
A single tag will use the post/publish date of the post to create a calendar event.
-
A [cal]MM/DD/YYYY[/cal] (leading zeros are required) entry will create a calendar event based on the date within the [cal] tag pair.
Blog, Forum, File, and Gallery posts that contain one of the above [cal] tag entries, will have an event added to the calendar. The event will display in the calendar as a text link of the subject text that links to the post. Birthday links with link to user page of the user. If a post or user profile is editted or deleted, the coresponding event will be updated or deleted as well.
Block moves and deletes, such as deleting or moving an entire forum, do not execute the CS API events. This results in orphaned records (which will not display on the calendar) and unregistered events in the case of a move. To rebuild the event tables, the RebuildCalendarEvents.sql script can be run at any time. This script will remove all existing calendar events from the tables and then go through every post and user to rebuild them.
Standard ComponentArt Calendar CSS Class Properties
-
CalendarCssClass
-
CalendarTitleCssClass
-
DayCssClass
-
DayHeaderCssClass
-
MonthCssClass
-
OtherMonthDayCssClass
-
TodayDayCssClass
Other ComponentArt Calendar Properties
-
MonthPadding
-
MonthSpacing
Calendar Event Hyperlink Properties
-
HyperLinkCssClass
-
HyperLinkTarget
Special Properties
Internal Controls
-
-
Standard Chameleon control.
-
LeaderTemplate
-
Standard Chameleon control.
- LoadingPanelClientTemplate
-
This allows you to replace the default twisting ring that displays during AJAX calls.
-
TrailerTemplate
-
Standard Chameleon control.
In about a month I will be starting development on a commercial version of this control that will provide functionality similar to that in Outlook. Users will be able to create personal events on their calendar and share those events with other users. If you have any suggestions for new abilities that you would like to see added to either the free or commercial control, please post a comment here. I'll post more on the commercial control at a later date.