This document is for an older version of

Calendar

.

View latest version →

Calendar Calendar for ExpressionEngine

Calendar:iCalendar template tag

The Calendar:iCalendar tag is available for event exporting purposes. It outputs an ICS (RFC-2445) compatible file, which can then be imported into other programs such as Google Calendar, Apple Calendar, Microsoft Outlook, Lightning, etc.

The iCalendar function contains preformatted info within it's tags, so nothing is to go inbetween the Calendar:iCalendar tags, etc. When the template that contains this tag is accessed, the browser will instantly prompt the user to download a file.

{exp:calendar:icalendar}{/exp:calendar:icalendar}
1

Parameters

All of the parameters listed in Calendar:Events are available for use here. Additionally, the following parameter is available for use as well:

summary_field=

summary_field="CUSTOM_FIELD_NAME"

This optional parameter allows you to specify which field to use instead of the title field to generate the event title for the ICS file.

Examples

The below code example is a complete example of how you would use the iCalendar feature:

{exp:calendar:icalendar
  orderby="title"
  sort="asc"
  date_range_start="today"
  show_months="3"
  dynamic="off"
}
{/exp:calendar:icalendar} 
1
2
3
4
5
6
7
8