This is a snippet I’ve been working on to show Google Calendar feeds. The main goal is to make it 100% templateable.
You can view and download it from github at
http://github.com/chucktrukk/prowebscape-calendar/tree/master
A live site it is on is:
http://www.fellowship.sodiumhalogen.com/events-and-news/calendar&yearID=2009&monthID=03
Update on April 15, 2009: The snippet can now display multiple calendars.
Update on April 16, 2009: Added [+calName+], [+calNameClean+], [+calEmail+] placeholders. Also updated instructions on quantum-cmg.com .
Update on April 21, 2009: Added /cache/ folders to the repository in github. These need to be writeable. I think this is ready for production. If anyone wants to help run a few tests, I’ll add it to the modx repo.
Update on April 12, 2011: This code is old. It probably has a number of bugs.
Aha. brilliant. The download is now link on the demos page is updated.
PS - git is pretty slick.
-
☆ A M B ☆
- 2,213 Posts
I’m looking forward to testing this out, but I have two questions:
Can you display several calendar’s events at once?
Can you have links to your site in the popups (iCal) for more information?
Thanks,
AMDbuilder
Awesome. Checked out the demos - looks and works great.
Haven’t had a chance yet to look through the code, but does this or any plans to make this work with .ics files?
Des
webandflowdesign.com
Quote from: AMDbuilder at Apr 13, 2009, 05:46 PM
Can you display several calendar’s events at once?
Can you have links to your site in the popups (iCal) for more information?
1. You can show multiple events at once. Each event for a day is displayed using the eachEvent.tpl file. The calendar loops through each day. If the day has at least one event, it uses the dayWithEvent.tpl template then loops through each event using the eachEvent.tpl template. If there is no event for the day, it use dayNoEvent.tpl as the template.
2. Each .tpl template file is customizable and you can put anything in it. You can use any modx tags. I think you can use PHx. I have made the events popup via simplemodal for one site.
Quote from: webandflow at Apr 14, 2009, 10:06 AM
Does this or any plans to make this work with .ics files?
This uses the Google Calendar RSS feed exclusively. You can import iCal and MS Outlook CSV calendars into Google Calendar. You can sync your Outlook and iCal folders to Google. Here’s their link:
http://www.google.com/support/calendar/bin/topic.py?topic=15305
This is just Super! Can’t wait till it’s in Beta or even better ready to use. Great work!
I think, thererfor I am! But what I am, and why...?
CHUCK, YOU TOTALLY ROCK!!