Plone: Google Calendar Integration

Wouldn’t it be great if you could somehow add your Event content item within the Plone CMS onto your Google Calendar with just a click? (it’d be better with fewer, but 1 click is pretty good - give me a break!)

Try this placed inside the event_view page template (customise it in the ZMI) after the vCal and iCal links:

<a href="#"
tal:attributes="href python:''
+'&details='+here.getRawDescription()+'<br />'+here.getRawText()
title="Add this event to Google Calendar"
style="background-image: none; padding: 0px;"
    <img src="" alt="Add to Google Calendar" width="50" height="13"  />

So, it’s clear as mud, right? It does some magic and completes a link for you to use to add your given event and it’s details into Google Calendar from Plone.

For those of you really paying attention, the date conversion is nasty (why doesn’t Google accept an immediately accessible format?) and this won’t work unless all fields are filled out. I’m still working on a field-friendly solution.

Either way, I didn’t find anything on the web about doing this, so here it is. Use as you will.

Go Top
comments powered by Disqus