Skip to main content
Known Participant
June 4, 2015
Question

Add to my calendar, Google, Outlook, iCal, Yahoo

  • June 4, 2015
  • 2 replies
  • 1268 views

Hi,

I am looking for suggestions on doing this.  Basically, I'd like to add "Add to my calendar" for Google, Outlook, iCal and Yahoo on a confirmation email.  The event name, date/time and location is in database.  I know I will have to store temp file in the server but not sure what else I need.  Any suggestions are appreciated.

This topic has been closed for replies.

2 replies

alexandrs39523537
Participant
July 10, 2016

In a current project I am giving the user the option to Add to Google Calendar and download an iCal file. The iCal file has to be generated manually and then hosted on BC as a download.


The Add to Google feature is a link that you can dynamically build using data in your Events module, or a web app, with Liquid. Use this Liquid filter to URL encode each string: url_param_escape

You will also need to use the date switches to format the date correctly.

Here is an example, taken from a Stack Overflow answer:

https://www.google.com/calendar/render?action=TEMPLATE&text=Your+Event+Name&dates=20140127T224000Z/20140320T221500Z&details=For+details,+link+here:+http://www.example.com&location=Waldorf+Astoria,+301+Park+Ave+,+New+York,+NY+10022&sf=true&output=xml

Known Participant
June 9, 2015

Anyone?  Some ideas or where to begin?

Thanks.

Inspiring
June 10, 2015

There are a few UDFs over at cflib.org that will do this kind of thing.

CFLib.org – vCal

CFLib.org – iCalUS

Probably be a good place to start.