# Events calendar extension

**URL:** <https://www.ruby-forum.com/t/events-calendar-extension/106319>\
**Category:** Radiant CMS\
**Created:** [June 8, 2007, 2:54pm UTC](https://www.ruby-forum.com/t/events-calendar-extension/106319 "2007-06-08T14:54:23Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnf](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/848f3c/32.png) [@johnf](https://www.ruby-forum.com/u/johnf)\
**Post date:** [June 8, 2007, 2:54pm UTC](https://www.ruby-forum.com/t/events-calendar-extension/106319/1 "2007-06-08T14:54:23Z")

</div>

Hello,

I remember reading on this list that someone was working on an events  
calendar extension. Is that ready for use, and if so, where can I  
find information about it.

Thanks.

John F.  
Digital Systems and Services Coordinator  
MBLWHOI Library  
Woods Hole MA 02543 USA  
PHONE: 508-289-7435  
EMAIL: removed\_email\_address@domain.invalid  
[http://www.mblwhoilibrary.org](http://www.mblwhoilibrary.org)

---

<div class="post-metadata">

**Author:** ![johnf](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/848f3c/32.png) [@johnf](https://www.ruby-forum.com/u/johnf)\
**Post date:** [June 8, 2007, 3:00pm UTC](https://www.ruby-forum.com/t/events-calendar-extension/106319/2 "2007-06-08T15:00:24Z")

</div>

On 6/8/07, John F. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hello,
> 
> I remember reading on this list that someone was working on an events  
> calendar extension.

That was Sean C…

---

<div class="post-metadata">

**Author:** ![johnf](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/848f3c/32.png) [@johnf](https://www.ruby-forum.com/u/johnf)\
**Post date:** [June 8, 2007, 3:00pm UTC](https://www.ruby-forum.com/t/events-calendar-extension/106319/3 "2007-06-08T15:00:24Z")

</div>

John,

There are two that I know of. Loren has one he showed us at RailsConf  
that uses iCal subscriptions for the data storage. I wrote one for  
KCKCC that is very basic but stores the info locally (and is probably  
out of date, considering where extensions are now).

You can find all of the extensions I wrote back in November/December for  
KCKCC here: [Esumm.com is for sale | HugeDomains](http://kck.esumm.com/www/html/vendor/extensions/)

Sean

---

<div class="post-metadata">

**Author:** ![johnf](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/848f3c/32.png) [@johnf](https://www.ruby-forum.com/u/johnf)\
**Post date:** [June 8, 2007, 7:35pm UTC](https://www.ruby-forum.com/t/events-calendar-extension/106319/4 "2007-06-08T19:35:54Z")

</div>

Event Calendar (iCal) extension

[http://svn.fn-group.com/radiant\_extensions/event\_calendar](http://svn.fn-group.com/radiant_extensions/event_calendar)

It’s pretty much ready to go as-is, I’ve recently made several clean-  
ups to it to make it simpler to install and more cleanly designed in  
terms of objects.

We are using this on 4 sites currently and in each case our customer  
is happy to be entering stuff using Google C.s (which supplies  
us an iCal feed address). The big advantage of this approach is that  
you can have several authors feeding individual calendars up to the  
website without having to support them as Radiant users.

However, it would be relatively simple to adapt it to handle both the  
current iCal subscriptions way of populating events alongside manual  
direct event entry and I won’t be surprised if I’ll need to add this  
ability at some later point.

The calendar operates either as an on-page event list queried via  
\<r:calendar /\> tag attributes (all the tags are setup as global) or  
as a dedicated virtual page which uses the path parameters below it’s  
own root to determine the period and set of events you wish to display.

A few of disclaimers :

1. Read the README. You’ll need to run “rake db:migrate:extensions”  
and create a directory under public to store the ical files that get  
pulled in.

2. I always setup a script/runner cron job to keep the calendars  
refreshed from the subscriptions every hour. There are no  
instructions for this in the README but it’s simply done if you have  
linux admin chops.

3. The documentation under the “Help!” link may not be up to date,  
also the tag documentation is there but the formatting isn’t very  
nice. I’ll be fixing this shortly.

---

<div class="post-metadata">

**Author:** ![johnf](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/848f3c/32.png) [@johnf](https://www.ruby-forum.com/u/johnf)\
**Post date:** [June 8, 2007, 10:52pm UTC](https://www.ruby-forum.com/t/events-calendar-extension/106319/5 "2007-06-08T22:52:23Z")

</div>

Thanks Loren,

Getting the following error when trying to add a new calendar:

LoadError in CalendarsController#new

Expected /Users/jfurfey/Sites/wfl/vendor/extensions/event\_calendar/  
app/models/ical.rb to define Ical

RAILS\_ROOT: script/…/config/…

On Jun 8, 2007, at 1:33 PM, Loren J. wrote:

> is happy to be entering stuff using Google C.s (which supplies  
> \<r:calendar /\> tag attributes (all the tags are setup as global) or  
> 2. I always setup a script/runner cron job to keep the calendars  
> Radiant mailing list  
> Post: removed\_email\_address@domain.invalid  
> Search: [http://radiantcms.org/mailing-list/search/](http://radiantcms.org/mailing-list/search/)  
> Site: [http://lists.radiantcms.org/mailman/listinfo/radiant](http://lists.radiantcms.org/mailman/listinfo/radiant)

John F.  
Digital Systems and Services Coordinator  
MBLWHOI Library  
Woods Hole MA 02543 USA  
PHONE: 508-289-7435  
EMAIL: removed\_email\_address@domain.invalid  
[http://www.mblwhoilibrary.org](http://www.mblwhoilibrary.org)

---

<div class="post-metadata">

**Author:** ![johnf](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/848f3c/32.png) [@johnf](https://www.ruby-forum.com/u/johnf)\
**Post date:** [June 10, 2007, 3:58pm UTC](https://www.ruby-forum.com/t/events-calendar-extension/106319/6 "2007-06-10T15:58:25Z")

</div>

Loren,

Installing the vpim gem solved the problem.

Thanks a lot,  
John  
On Jun 8, 2007, at 7:02 PM, Loren J. wrote:

> On Jun 8, 2007, at 2:51 PM, John F. wrote:
> 
> > RAILS\_ROOT: script/…/config/…
> > 
> > > It’s pretty much ready to go as-is, I’ve recently made several  
> > > However, it would be relatively simple to adapt it to handle both  
> > > display.  
> > > linux admin chops.  
> > > Site: [http://lists.radiantcms.org/mailman/listinfo/radiant](http://lists.radiantcms.org/mailman/listinfo/radiant)
> 
> Search: [http://radiantcms.org/mailing-list/search/](http://radiantcms.org/mailing-list/search/)  
> Site: [http://lists.radiantcms.org/mailman/listinfo/radiant](http://lists.radiantcms.org/mailman/listinfo/radiant)

John F.  
Digital Systems and Services Coordinator  
MBLWHOI Library  
Woods Hole MA 02543 USA  
PHONE: 508-289-7435  
EMAIL: removed\_email\_address@domain.invalid  
[http://www.mblwhoilibrary.org](http://www.mblwhoilibrary.org)

---

<div class="post-metadata">

**Author:** ![johnf](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/848f3c/32.png) [@johnf](https://www.ruby-forum.com/u/johnf)\
**Post date:** [June 9, 2007, 1:03am UTC](https://www.ruby-forum.com/t/events-calendar-extension/106319/7 "2007-06-09T01:03:38Z")

</div>

I don’t know what’s causing that but this could be related, and is a  
very important note (which I’ve added to my README just now). You  
need to install a gem called VPIM in order for the calendar to work.

gem install vpim

Let me know if this fixes it for you,

Loren
