开发者

How do I add an .ics calendar event to Google Calendar?

开发者 https://www.devze.com 2023-04-01 09:21 出处:网络
I am creating an Expression Engine Calendar using Solspace\'s Calendar module which exports .ics files. I would like for users to be able to click on a link to add events to their Google Cal开发者_JS百

I am creating an Expression Engine Calendar using Solspace's Calendar module which exports .ics files. I would like for users to be able to click on a link to add events to their Google Cal开发者_JS百科endar.

Google search we too broad and I need some more specific direction on how this might be done.


You mention that you are using a module that exports the ics files.

Generally link should then be to the ics file (or the code that produces the ics file dynamically).

Then when the user clicks the link, the browser sees it is an ics file and depending on the user's settings will prompt an action (usually to add to their calendar).

If you specifically only want to add to their google calendar, then you need to generate the sorts of link hrefs you see at this test site: http://test.icalevents.com/calendar-of-all-events/

It has example of "add whole calendar to google) and "add just an event to google" (as well as the more general ics links).

Hope that makes it clearer?


If you just want to have links to add individual events to a visitor's calendar, follow the Google developer documentation here: http://www.google.com/googlecalendar/event_publisher_guide_detail.html

Then just use your various field variables to build the link to spec in your template.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号