Recent Changes - Search:

Cookbook

PmWiki

pmwiki.org

ICalExport

Summary: Export wikicalender entries as ical file
Version: 1.31
Prerequisites: pmwiki-2b54
Last-tested-with: 2beta and WikiCalendar
Status: stable
Maintainer:
Categories: Calendar, PIM
Votes:

Goal

Export entries made in a WikiCalendar to the iCal format so you can subscribe to it online via Apple iCal or Mozilla Sunbird.

Solution

The script assume that you have the WikiCalendar cookbook installed that gives wiki sides with group and names like "Groupname/yyyymmdd" -> "Calendar/20050801".

  1. put icalexport.phpΔ into your cookbook folder
  2. include it into your config.php: "include_once("$FarmD/cookbook/icalexport.php");"
  3. set the following parameter in your config.php file:
    1. $ICalCalendarGroup - the name of your wikilog group - default:"Calendar"
    2. $ICalCalendarTitle - the title shown if the calendar is subscribed - default:"PmWiki Calendar"
    3. $ICalTimeZone - the time zone the events belong to - default:"Europe/Berlin"
    4. $ICalFileName - the name of calendarfile - default: same as $ICalCalendarGroup

The link to the generated file is $UploadDir/$ICalCalendarGroup/$ICalFileName.ics so per default it is something like http://yourserver/uploads/Calendar/Calendar.ics(approve links)

If you haven't uploaded anything in your calender group yet, don't forget to make a new folder with the appropriate rights or just upload something.

Language Adaption

The keywords "Begin", "End", "Location", and "Description" can be localized.

Usage

On a wiki side each calendar entry has do be seperated by a horizontal rule:

    !!Title of the first Event
    Begin: hh:mm 
End: hh:mm
Location:
Description: ---- !!Title of the next Event ...

Notes and Comments

Question

How would you export multiple calendars (in different groups) from the same wiki?

Answer

See Also

Contributors

Edit - History - Print - Recent Changes - Search
Page last modified on September 12, 2007, at 12:42 AM