Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - spingary

Pages: [1]
1
Community Contributions / Added tasks to iCalendar export
« on: March 20, 2010, 05:21:01 pm »
I love the iCalendar export feature.  I use it to add my Feng calendar to my Google Calendar, then all my Google calendars gets synced to my Palm Pre. It works great.

The problem is that the Feng iCalendar export does not export tasks.  So I hacked it to do so.  Hopefully this might find its way to the core.

Two files are updated and attached:
application/controllers/FeedController.class.php
environment/classes/event/CalFormatUtilities.php

Since tasks have no start/end times, they export as date events with no time. In Google Calendar they show up on the top of each day.  This is nice in that it shows me what I am supposed to be working on from day to day without crowding my calendar time slots.

To use it, simply get the iCalendar URL like you normally do, and add the parameter "&p=1" to tell it you want project tasks exported as well.

For example, the URL might be:

http://projects.xyz.com/index.php?c=feed&a=ical_export&n=Gary%20W&cal=0&t=abcabcabc5420657bbe7b70191a9e4d582f634881c&isw=0

You just have to change it to:

http://projects.xyz.com/index.php?c=feed&a=ical_export&n=Gary%20W&cal=0&t=abcabcabc5420657bbe7b70191a9e4d582f634881c&isw=0&p=1

Oh, and you can change the display name of the calendar by simply changing the "n" parameter. So instead of "&n=Gary%20W" I changed it to "&n=Projects%20Calendar" and it shows up on my Palm Pre as "Projects Calendar"

Hope someone finds this useful.

PS This is not fully tested so use as your own risk.  I hope all pulled the project tasks correctly!

Pages: [1]