MarkupiCalendar by ffub

A module that acts as a wrapper for creating iCalendar feeds using the iCalcreator library.

Given a PageArray of pages, this module will render an iCalendar feed from them. This is intended to be used directly from a template file. See usage below.

The module uses the excellent iCalcreator library from http://www.kigkonsult.se/iCalcreator/ for creating the ICS feed itself and as such mostly just acts as a simple wrapper.

Usage


$ics = $modules->get("MarkupiCalendar"); 
$ics->title = "Upcoming Events";
$ics->description = "Some upcoming events";
$ics->itemStartDateField = 'date';
$today = time();
$items = $pages->find("template=event, limit=30, sort=date, date>$today");
$ics->render($items);

Runtime options


'title' => 'Untitled iCal Feed',
'url' => '',
'description' => '',
'itemSummaryField' => 'title',
'itemDescriptionField' => 'summary',
'itemLocationField' => false,
'itemStartDateField' => 'created',
'itemEndDateField' => false,
'feedPages' => array(),
'timezone' => false

Copyright (C) 2011 by Stephen Tomlinson
This module is licensed under Apache License v2.0, see LICENSE.TXT within the module folder.
The iCalcreator library is copyright (c) 2007-2011 Kjell-Inge Gustafsson and licensed under the LPGL.

http://twitter.com/ffub
http://www.processwire.com

Install and use modules at your own risk. Always have a site and database backup before installing new modules.

Latest news

  • ProcessWire Weekly #519
    In the 519th issue of ProcessWire Weekly we'll check out a new third party module called RockForms, introduce the latest ProcessWire core updates, and more. Read on!
    Weekly.pw / 20 April 2024
  • ProFields Table Field with Actions support
    This week we have some updates for the ProFields table field (FieldtypeTable). These updates are primarily focused on adding new tools for the editor to facilitate input and management of content in a table field.
    Blog / 12 April 2024
  • Subscribe to weekly ProcessWire news

“…building with ProcessWire was a breeze, I really love all the flexibility the system provides. I can’t imagine using any other CMS in the future.” —Thomas Aull