Ektron CMS400.Net Reference

>>Using Other Development Frameworks > Custom ASP Functions > Calendar Function

Calendar Function

The ecmCalendar function displays a calendar that has been created in Ektron CMS400.NET. Here is the format for the event calendar custom function.

<% ecmCalendar “id”, “DisplayType” %>

Note: While you can display a month view calendar with ecmCalendar, you can also use ecmEvtCalendar to display a month view calendar. For more Information, see Event Calendar Function

The ecmCalendar function attributes are explained below.

Attribute

Description

id

The “id” argument represents the ID number of the event calendar in the Workarea.

DisplayType

Specify the Calendar display type.

Month - A 30 day calendar month view.

Day - Single day view.

Inline - Display events that occur from the start date of the calendar through the end date.

MonthUpWithEvent - Displays a month calendar. Events appear to the right of the calendar when you click on a day.

Calendar Style Sheet

Before you insert an event Calendar into your Ektron CMS400.NET template, you should make a reference to the style sheet, \siteroot\Workarea\csslib\calendarStyles.css, in your template. This style sheet contains styles that define the Calendar.

Event Calendar Sample

Here is an example of an event Calendar in an Ektron CMS400.NET template.

<tr>

<td>

<% ecmCalendar "1", “MonthUpWithEvent” %>

</td>

</tr>

When this code is displayed in a browser, the Calendar with an ID of 1 and DisplayType of MonthUpWithEvent is displayed. Here is the calendar displayed on a Web Page

If...

Calendar Display

Logged in

Notice the add event and view event buttons that appear when logged in.

Logged Out

 

As you can see, when you are logged into the Web site, you can add and view Calendar events. When logged out, you can only view calendar events.


Visit the Ektron Dev Center at http://dev.ektron.com 1-866 - 4 - EKTRON

Ektron CMS400.NET Reference Version 8.02 SP1 Rev 1

Ektron Documentation,© 2011 Ektron, Inc.