<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Creating an iCal Feed from DotCMS Content / Calendar</title>
	<atom:link href="http://www.cfalzone.com/blog/2009/09/ical-dotcms/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cfalzone.com/blog/2009/09/ical-dotcms/</link>
	<description>Christopher Falzone's Blog</description>
	<lastBuildDate>Wed, 07 Jul 2010 17:34:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: James Murgolo</title>
		<link>http://www.cfalzone.com/blog/2009/09/ical-dotcms/comment-page-1/#comment-753</link>
		<dc:creator>James Murgolo</dc:creator>
		<pubDate>Mon, 22 Mar 2010 02:57:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.cfalzone.com/blog/?p=81#comment-753</guid>
		<description>I didn&#039;t add the timezone recurrence or start end dates for the above code.  So the correct code should have been

#set($individualid= $request.getParameter(&#039;id&#039;))
#set($today = $UtilMethods.now())

#set($query=&quot;+structureInode:53146 +languageId:1* +deleted:false +live:true + identifier:$individualid&quot;)
#pullContent(&quot;$query&quot; &quot;1&quot; &quot;text1&quot;)

#set($today = $UtilMethods.now())
#set($eventtitlefilename = $content.title)

#set ($eventtitle = &#039;attachment;filename=&#039; + $eventtitlefilename.replaceAll(&quot; &quot;, &quot;-&quot;) + &#039;.ics&#039;)

#if ($content.allDayEvent == &#039;1,&#039;)
	#set($alldayevent = &#039;TRUE&#039;)
#else
	#set($alldayevent = &#039;FALSE&#039;)
#end

$response.setContentType(&#039;text/calendar&#039;)
$response.setHeader(&quot;Content-disposition&quot;, $eventtitle)

BEGIN:VCALENDAR
PRODID:-//Microsoft Corporation//Outlook 9.0 MIMEDIR//EN
VERSION:2.0
METHOD:PUBLISH
BEGIN:VTIMEZONE
TZID:America/New_York
BEGIN:STANDARD
TZOFFSETFROM:-0400
TZOFFSETTO:-0500
TZNAME:EST
DTSTART:20071104T020000
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU
END:STANDARD
BEGIN:DAYLIGHT
TZOFFSETFROM:-0500
TZOFFSETTO:-0400
TZNAME:EDT
DTSTART:20070311T020000
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU
END:DAYLIGHT
END:VTIMEZONE
#foreach($content in $list)
BEGIN:VEVENT
SUMMARY:$!content.title
LOCATION:$content.location
DTSTART;TZID=America/New_York:$date.format(&quot;yyyyMMdd&#039;T&#039;HHmmss&quot;, $content.startDate)
DTEND;TZID=America/New_York:$date.format(&quot;yyyyMMdd&#039;T&#039;HHmmss&quot;, $content.endDate)
X-MICROSOFT-CDO-ALLDAYEVENT:$alldayevent
URL:http://www.oxford.emory.edu/calendar/index.dot?id=$content.identifier
DESCRIPTION:$content.description
DTSTAMP:$date.format(&quot;yyyyMMdd&#039;T&#039;HHmmss&quot;, $today)
UID:http://www.oxford.emory.edu/calendar/index.dot?id=$content.identifier
END:VEVENT
#end
END:VCALENDAR

with the added information in the begin:standard and begin:daylight tags.  Sorry.  Didn&#039;t catch it until the time actually changed.</description>
		<content:encoded><![CDATA[<p>I didn&#8217;t add the timezone recurrence or start end dates for the above code.  So the correct code should have been</p>
<p>#set($individualid= $request.getParameter(&#8216;id&#8217;))<br />
#set($today = $UtilMethods.now())</p>
<p>#set($query=&#8221;+structureInode:53146 +languageId:1* +deleted:false +live:true + identifier:$individualid&#8221;)<br />
#pullContent(&#8220;$query&#8221; &#8220;1&#8243; &#8220;text1&#8243;)</p>
<p>#set($today = $UtilMethods.now())<br />
#set($eventtitlefilename = $content.title)</p>
<p>#set ($eventtitle = &#8216;attachment;filename=&#8217; + $eventtitlefilename.replaceAll(&#8221; &#8220;, &#8220;-&#8221;) + &#8216;.ics&#8217;)</p>
<p>#if ($content.allDayEvent == &#8217;1,&#8217;)<br />
	#set($alldayevent = &#8216;TRUE&#8217;)<br />
#else<br />
	#set($alldayevent = &#8216;FALSE&#8217;)<br />
#end</p>
<p>$response.setContentType(&#8216;text/calendar&#8217;)<br />
$response.setHeader(&#8220;Content-disposition&#8221;, $eventtitle)</p>
<p>BEGIN:VCALENDAR<br />
PRODID:-//Microsoft Corporation//Outlook 9.0 MIMEDIR//EN<br />
VERSION:2.0<br />
METHOD:PUBLISH<br />
BEGIN:VTIMEZONE<br />
TZID:America/New_York<br />
BEGIN:STANDARD<br />
TZOFFSETFROM:-0400<br />
TZOFFSETTO:-0500<br />
TZNAME:EST<br />
DTSTART:20071104T020000<br />
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU<br />
END:STANDARD<br />
BEGIN:DAYLIGHT<br />
TZOFFSETFROM:-0500<br />
TZOFFSETTO:-0400<br />
TZNAME:EDT<br />
DTSTART:20070311T020000<br />
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU<br />
END:DAYLIGHT<br />
END:VTIMEZONE<br />
#foreach($content in $list)<br />
BEGIN:VEVENT<br />
SUMMARY:$!content.title<br />
LOCATION:$content.location<br />
DTSTART;TZID=America/New_York:$date.format(&#8220;yyyyMMdd&#8217;T'HHmmss&#8221;, $content.startDate)<br />
DTEND;TZID=America/New_York:$date.format(&#8220;yyyyMMdd&#8217;T'HHmmss&#8221;, $content.endDate)<br />
X-MICROSOFT-CDO-ALLDAYEVENT:$alldayevent<br />
URL:http://www.oxford.emory.edu/calendar/index.dot?id=$content.identifier<br />
DESCRIPTION:$content.description<br />
DTSTAMP:$date.format(&#8220;yyyyMMdd&#8217;T'HHmmss&#8221;, $today)<br />
UID:http://www.oxford.emory.edu/calendar/index.dot?id=$content.identifier<br />
END:VEVENT<br />
#end<br />
END:VCALENDAR</p>
<p>with the added information in the begin:standard and begin:daylight tags.  Sorry.  Didn&#8217;t catch it until the time actually changed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cfalzone</title>
		<link>http://www.cfalzone.com/blog/2009/09/ical-dotcms/comment-page-1/#comment-684</link>
		<dc:creator>cfalzone</dc:creator>
		<pubDate>Mon, 01 Mar 2010 16:42:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.cfalzone.com/blog/?p=81#comment-684</guid>
		<description>Thanks James :)</description>
		<content:encoded><![CDATA[<p>Thanks James <img src='http://www.cfalzone.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Murgolo</title>
		<link>http://www.cfalzone.com/blog/2009/09/ical-dotcms/comment-page-1/#comment-665</link>
		<dc:creator>James Murgolo</dc:creator>
		<pubDate>Tue, 23 Feb 2010 16:25:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.cfalzone.com/blog/?p=81#comment-665</guid>
		<description>for what&#039;s it worth, I converted code to single entry export for individual calendar items.  

#set($individualid= $request.getParameter(&#039;id&#039;))
#set($today = $UtilMethods.now())

#set($query=&quot;+structureInode:53146 +languageId:1* +deleted:false +live:true + identifier:$individualid&quot;)
#pullContent(&quot;$query&quot; &quot;1&quot; &quot;text1&quot;)

#set($today = $UtilMethods.now())
#set($eventtitlefilename = $content.title)

#set ($eventtitle = &#039;attachment;filename=&#039; + $eventtitlefilename.replaceAll(&quot; &quot;, &quot;-&quot;) + &#039;.ics&#039;)

#if ($content.allDayEvent == &#039;1,&#039;)
	#set($alldayevent = &#039;TRUE&#039;)
#else
	#set($alldayevent = &#039;FALSE&#039;)
#end

$response.setContentType(&#039;text/calendar&#039;)
$response.setHeader(&quot;Content-disposition&quot;, $eventtitle)

BEGIN:VCALENDAR
PRODID:-//Microsoft Corporation//Outlook 9.0 MIMEDIR//EN
VERSION:2.0
METHOD:PUBLISH
BEGIN:VTIMEZONE
TZID:America/New_York
BEGIN:STANDARD
TZOFFSETFROM:-0400
TZOFFSETTO:-0500
TZNAME:EST
END:STANDARD
BEGIN:DAYLIGHT
TZOFFSETFROM:-0500
TZOFFSETTO:-0400
TZNAME:EDT
END:DAYLIGHT
END:VTIMEZONE
#foreach($content in $list)
BEGIN:VEVENT
SUMMARY:$!content.title
LOCATION:$content.location
DTSTART;TZID=America/New_York:$date.format(&quot;yyyyMMdd&#039;T&#039;HHmmss&quot;, $content.startDate)
DTEND;TZID=America/New_York:$date.format(&quot;yyyyMMdd&#039;T&#039;HHmmss&quot;, $content.endDate)
X-MICROSOFT-CDO-ALLDAYEVENT:$alldayevent
URL:http://www.oxford.emory.edu/calendar/index.dot?id=$content.identifier
DESCRIPTION:$content.description
DTSTAMP:$date.format(&quot;yyyyMMdd&#039;T&#039;HHmmss&quot;, $today)
UID:http://www.oxford.emory.edu/calendar/index.dot?id=$content.identifier
END:VEVENT
#end
END:VCALENDAR

$content.allDayEvent</description>
		<content:encoded><![CDATA[<p>for what&#8217;s it worth, I converted code to single entry export for individual calendar items.  </p>
<p>#set($individualid= $request.getParameter(&#8216;id&#8217;))<br />
#set($today = $UtilMethods.now())</p>
<p>#set($query=&#8221;+structureInode:53146 +languageId:1* +deleted:false +live:true + identifier:$individualid&#8221;)<br />
#pullContent(&#8220;$query&#8221; &#8220;1&#8243; &#8220;text1&#8243;)</p>
<p>#set($today = $UtilMethods.now())<br />
#set($eventtitlefilename = $content.title)</p>
<p>#set ($eventtitle = &#8216;attachment;filename=&#8217; + $eventtitlefilename.replaceAll(&#8221; &#8220;, &#8220;-&#8221;) + &#8216;.ics&#8217;)</p>
<p>#if ($content.allDayEvent == &#8217;1,&#8217;)<br />
	#set($alldayevent = &#8216;TRUE&#8217;)<br />
#else<br />
	#set($alldayevent = &#8216;FALSE&#8217;)<br />
#end</p>
<p>$response.setContentType(&#8216;text/calendar&#8217;)<br />
$response.setHeader(&#8220;Content-disposition&#8221;, $eventtitle)</p>
<p>BEGIN:VCALENDAR<br />
PRODID:-//Microsoft Corporation//Outlook 9.0 MIMEDIR//EN<br />
VERSION:2.0<br />
METHOD:PUBLISH<br />
BEGIN:VTIMEZONE<br />
TZID:America/New_York<br />
BEGIN:STANDARD<br />
TZOFFSETFROM:-0400<br />
TZOFFSETTO:-0500<br />
TZNAME:EST<br />
END:STANDARD<br />
BEGIN:DAYLIGHT<br />
TZOFFSETFROM:-0500<br />
TZOFFSETTO:-0400<br />
TZNAME:EDT<br />
END:DAYLIGHT<br />
END:VTIMEZONE<br />
#foreach($content in $list)<br />
BEGIN:VEVENT<br />
SUMMARY:$!content.title<br />
LOCATION:$content.location<br />
DTSTART;TZID=America/New_York:$date.format(&#8220;yyyyMMdd&#8217;T'HHmmss&#8221;, $content.startDate)<br />
DTEND;TZID=America/New_York:$date.format(&#8220;yyyyMMdd&#8217;T'HHmmss&#8221;, $content.endDate)<br />
X-MICROSOFT-CDO-ALLDAYEVENT:$alldayevent<br />
URL:http://www.oxford.emory.edu/calendar/index.dot?id=$content.identifier<br />
DESCRIPTION:$content.description<br />
DTSTAMP:$date.format(&#8220;yyyyMMdd&#8217;T'HHmmss&#8221;, $today)<br />
UID:http://www.oxford.emory.edu/calendar/index.dot?id=$content.identifier<br />
END:VEVENT<br />
#end<br />
END:VCALENDAR</p>
<p>$content.allDayEvent</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Casey Wise</title>
		<link>http://www.cfalzone.com/blog/2009/09/ical-dotcms/comment-page-1/#comment-590</link>
		<dc:creator>Casey Wise</dc:creator>
		<pubDate>Wed, 20 Jan 2010 14:54:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.cfalzone.com/blog/?p=81#comment-590</guid>
		<description>Very nice work.  Thanks for posting.</description>
		<content:encoded><![CDATA[<p>Very nice work.  Thanks for posting.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
