Calendar Event

A content type for defining calendar events.

Features

  • Calendar Events are created under Event Calendars, usually inside workspaces.

Parent type

ListItem

Content handler

SenseNet.ContentRepository.CalendarEvent

Special fields

NameTypeDescription
LocationShortTextLocation of the event
StartDateDateTimeStart date of the event
EndDateDateTimeEnd date of the event
AllDayBooleanBoolean field to store if the event takes a whole day or not
EventTypeIntegerType of the event

Example

<ContentType name="CalendarEvent" parentType="ListItem" handler="SenseNet.ContentRepository.CalendarEvent" xmlns="http://schemas.sensenet.com/SenseNet/ContentRepository/ContentTypeDefinition">
<DisplayName>$Ctd-CalendarEvent,DisplayName</DisplayName>
<Description>$Ctd-CalendarEvent,Description</Description>
<Icon>CalendarEvent</Icon>
<Fields>
<Field name="Location" type="ShortText">
<DisplayName>$Ctd-CalendarEvent,Location-DisplayName</DisplayName>
<Description>$Ctd-CalendarEvent,Location-Description</Description>
</Field>
<Field name="StartDate" type="DateTime">
<DisplayName>$Ctd-CalendarEvent,StartDate-DisplayName</DisplayName>
<Configuration>
<DateTimeMode>DateAndTime</DateTimeMode>
<Compulsory>true</Compulsory>
<DefaultValue>@@currenttime@@</DefaultValue>
</Configuration>
</Field>
<Field name="EndDate" type="DateTime">
<DisplayName>$Ctd-CalendarEvent,EndDate-DisplayName</DisplayName>
<Configuration>
<DateTimeMode>DateAndTime</DateTimeMode>
<Compulsory>true</Compulsory>
<DefaultValue>@@currenttime@@</DefaultValue>
</Configuration>
</Field>
<Field name="AllDay" type="Boolean">
<DisplayName>$Ctd-CalendarEvent,AllDay-DisplayName</DisplayName>
<Description>$Ctd-CalendarEvent,AllDay-Description</Description>
</Field>
<Field name="EventType" type="Choice">
<DisplayName>$Ctd-CalendarEvent,EventType-DisplayName</DisplayName>
<Configuration>
<AllowMultiple>True</AllowMultiple>
<Options>
<Option value="Deadline" selected="true">$Ctd-CalendarEvent,EventType-Deadline</Option>
<Option value="Meeting">$Ctd-CalendarEvent,EventType-Meeting</Option>
<Option value="Demo">$Ctd-CalendarEvent,EventType-Demo</Option>
</Options>
<VisibleBrowse>Show</VisibleBrowse>
<VisibleEdit>Show</VisibleEdit>
<VisibleNew>Show</VisibleNew>
</Configuration>
</Field>
</Fields>
</ContentType>