<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>User Error &#187; Umbraco</title>
	<atom:link href="http://daniel.streefkerkonline.com/category/umbraco/feed/" rel="self" type="application/rss+xml" />
	<link>http://daniel.streefkerkonline.com</link>
	<description>Ramblings of a tinkering SysAdmin</description>
	<lastBuildDate>Mon, 19 Jul 2010 00:43:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Displaying Google Calendar events in Umbraco</title>
		<link>http://daniel.streefkerkonline.com/displaying-google-calendar-events-in-umbraco/</link>
		<comments>http://daniel.streefkerkonline.com/displaying-google-calendar-events-in-umbraco/#comments</comments>
		<pubDate>Tue, 07 Jul 2009 12:55:02 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[Umbraco]]></category>

		<guid isPermaLink="false">http://daniel.streefkerkonline.com/displaying-google-calendar-events-in-umbraco/</guid>
		<description><![CDATA[[12th October 2009 - I've just updated this post with a new version of the macro. It now groups events properly. Sorry to the guys/girls with multilingual sites, I haven't put any effort into using Dictionary Items as I don't &#8230; <a href="http://daniel.streefkerkonline.com/displaying-google-calendar-events-in-umbraco/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><em>[12th October 2009 - I've just updated this post with a new version of the macro. It now groups events properly. Sorry to the guys/girls with multilingual sites, I haven't put any effort into using Dictionary Items as I don't currently require that functionality]</em></p>
<p>I&#8217;ve yet to see a good event calendar in any of the CMSes I&#8217;ve tried that properly handles recurring events and makes it easy for the layman to update calendar events. I&#8217;ve therefore recently implemented a small macro for Umbraco that displays Google Calendar events from a cached XML calendar feed. I did this using the excellent <a href="http://feedcacheforumbraco.codeplex.com/" target="_blank">FeedCache</a> plugin and some XSLT.</p>
<p>My one gripe with FeedCache is that you can&#8217;t edit the feeds.config file using <a href="http://www.nibble.be/?p=53" target="_blank">ConfigTree</a>, but rather need file-level access to it. This is a major bummer, as I wanted to test it on <a href="http://autoumbraco.darren-ferguson.com" target="_blank">Umbraco Trials</a>.</p>
<p>I won&#8217;t post any CSS, but the XSLT caters for styling as it uses bulleted lists and spans around key areas.</p>
<p>The feed will then be displayed similar to below:</p>
<blockquote><p><em>Today</em></p>
<p><em> * Test Event (19:30-21:30) </em></p>
<p><em>Friday 16th October </em></p>
<p><em> * Meeting (19:30-21:30) </em></p>
<p><em>Sunday 18th October</em></p>
<p><em> * Seminar (10:30-12:30)<br />
* Lunch (13:00-14:00)<br />
* Games/Activities (14:30-15:30)<br />
</em></p></blockquote>
<p>Here&#8217;s a screenshot of it working on an Umbraco Trials site. I found a random Google Calendar feed and used that for the demo. Note that I didn&#8217;t put any effort into styling the results:</p>
<p><a href="http://daniel.streefkerkonline.com/uploads/2009/07/image.png"><img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" src="http://daniel.streefkerkonline.com/uploads/2009/07/image-thumb.png" border="0" alt="image" width="508" height="407" /></a></p>
<p>Basically, what you need to do is:</p>
<ol>
<li>Install <a href="http://feedcacheforumbraco.codeplex.com/" target="_blank">FeedCache</a></li>
<li>Install the <a href="http://daniel.streefkerkonline.com/uploads/2009/10/GCal_Events_List_1.2.zip" target="_blank">GCal Events List package</a></li>
<li>Set up the calendar feed in FeedCache&#8217;s feeds.config. The feeds.config entry should look like this:
<pre class="brush: xml;">&lt;feed&gt;
 &lt;url&gt;&lt;![CDATA[http://www.google.com/calendar/feeds/calendar@example.org/public/composite?orderby=starttime&amp;sortorder=ascending&amp;futureevents=true&amp;singleevents=true]]&gt; &lt;/url&gt;
 &lt;localFile&gt;GoogleCalendarFeed.xml&lt;/localFile&gt;
&lt;/feed&gt;</pre>
</li>
<li>Insert a macro wherever you need it, and fill out the parameters;
<ol>
<li>numberOfDays &#8211; (integer) how many days worth of events you would like to display</li>
<li>xmlFileName (string) the exact file name of the cached XML file in the umbraco\plugins\FergusonMoriyama\feedcache\ folder. eg. googleEvents.xml</li>
</ol>
</li>
<li>Call FeedCache from your browser to trigger a pull of the feed(s): <a title="http://example.org/umbraco/plugins/FergusonMoriyama/FeedCache/FeedCache.aspx" href="http://example.org/umbraco/plugins/FergusonMoriyama/FeedCache/FeedCache.aspx">http://example.org/umbraco/plugins/FergusonMoriyama/FeedCache/FeedCache.aspx</a></li>
<li>View the page that contains the macro inserted in step 4.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://daniel.streefkerkonline.com/displaying-google-calendar-events-in-umbraco/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
