use HTML code in the summary field of an iCalendar feed - google-calendar-api

I have this simple ics feed:
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Remodel or Move//NONSGML v1.0//EN
X-WR-CALNAME:My Scheduler
BEGIN:VEVENT
UID:uid1#remodelormove.com
DTSTAMP:20121010T080000Z
DTSTART:20121010T080000Z
DTEND:20121010T090000Z
SUMMARY:Compile list of wants
END:VEVENT
END:VCALENDAR
I would like to insert an HTML anchor into the summary so that users can click it and be sent off from Google Calendar (or Outlook, ...) to a webpage sitting on my website where they can edit the entry.
I am after something like this:
SUMMARY:Compile list of wants edit
I try that but the link is not shown when I import the ics feed into Google Calendar.
How can I achieve what I am after?
Thanks.

re html in summary field - I think that depends very much on the application that subscribes to the ics feed - many will not expect or deal with html.
Google is a bit weird in that last I tried, it allowed on to put in the html when creating an event but then tossed it away if one edited it.
Probably safer NOT to rely on html in the ics file.
Some applications (such as my wordpress ics plugin) will convert any http links found into 'clickable' links when displaying the event from the ics file.
FYI There is a url field https://www.rfc-editor.org/rfc/rfc5545#section-3.8.4.6. which is meant to be the one that provides detail on the event.
BY the way your example looks like it should be a VTODO not a VEVENT ?
https://www.rfc-editor.org/rfc/rfc5545#section-3.6.2

Related

Google Calendar - Shared calendar event creator

currently I am using Google Calendar's XML feed for shared calendars to view when events are created and who created them. This works great, unfortunately, Google Calendar is getting rid of their XML feeds Nov 17, which is absurd but besides the point. Now I have a problem:
I have taken a look at the exported ICS file which tells me when an event was created but not the creator of the event, which is useless because there are 5 people sharing a calendar scheduling events and I need to know the author of the events. There is no specification for author in the ICS file (like there is with the author tag in the XML feed).
So the simple question is, with a shared calendar, is there a way to tell (without XML feeds) who created the event?
Thanks so much, Bob

google analytics event tracking for PDF downloads, Generic approach

I need to implement the GA tracking event for PDF file downloads, For that had searched a lot and found out many code where i can add some code to links and track them from GA's content section, But the problem is I do have a lot of PDF link on the page and don't want to edit every link and I want the code to be generic for future uploaded links also.
So what would be the best approach for this task, Any referral links would do or any code would be highly appreciated .
Thanks in advance.
You can explore the use of Google Tag Manager, where you can create a generic tag that will return to you information for each individual link. GTM uses things called "macros" which is like a template that returns useful information including the clicked element's ID, or pathname (which in your case for the PDF files, would all be different). So in this way, you would only need to call this macro each time a PDF file is clicked. No coding is involved using this standard approach through GTM. Here's a link to a descriptive explanation: http://porcelainduck.com/2014/03/track-pdf-downloads-google-tag-manager/. You can see that it uses the {{element URL}} macro that returns the PDF's unique URL. GTM not only applies to current links, but also all future links.
Based on the tags which you've used to mark your question with you're using C#, ASP.NET
If that's the case, can't you create a base page that on rendering replaces all the
I would recommend adding a click event with JQuery to all links or all links inside the download widget class. Inside the click handler I would then grab the link text and use that as part of the Google analytics event you fire.

Google Calendar no longer imports alarms with iCalendar files

I wrote a script that generates several events with alarms in an iCalendar file. I used to be able to import these into Google Calendar and the alarms would work as designed. At some point within the last week, when I import one of the iCalendar files, the event reminders no longer show up in Google Calendar. To diagnose this, I tried creating a test event with an alarm and then taking it out of the Google Calendar iCal link. Here are the results minus some header information between BEGIN:VCALENDAR and the first BEGIN:VEVENT:
BEGIN:VCALENDAR
BEGIN:VEVENT
DTSTART:20130430T210000Z
DTEND:20130430T220000Z
DTSTAMP:20130430T143211Z
UID:cn0rdei9gdpbn0902jdvs0ltdkx1
CREATED:20130430T142949Z
DESCRIPTION:
LAST-MODIFIED:20130430T142949Z
LOCATION:
SEQUENCE:0
STATUS:CONFIRMED
SUMMARY:Test event
TRANSP:OPAQUE
BEGIN:VALARM
ACTION:DISPLAY
DESCRIPTION:This is an event reminder
TRIGGER:-P0DT0H10M0S
END:VALARM
END:VEVENT
END:VCALENDAR
Changing the UID and re-importing it results in the event being imported correctly, except the reminder no longer exists. The same is true if I leave in the time zone information I elided above.
Has Google simply removed the ability to import alarms or is there some way to fix this?
Setting a default reminder is not even a workaround because you still lose ALL your ics alarm entries.
I have tried every approach I can found on Internet and here and found a pretty good solution with iOS device, say iPhone.
1. Save your ics file
2. email this ics file as an attachment to your email which was set up in your iphone.
3. From iPhone, open that email and click on the attached ics file
4. At this point, your iPhone should ask you which calendar you want to import your icc. Select your Gmail calendar
5. The entries in the ics should appear in your Google calendar after sync (may take a few minutes, depending on your environment)
My iPhone is iOS7.
I haven't tried on iPad or other iOS version but it should work on other iOS version or iPad, I think.
In case you doubt, you can try editing a single event ics and try it before importing big ics files. I personally tried it and check if the VALARM is set in Google calendar. It did work !!!!
Hope this help you all.
This problem has been there for such a long time ~
Shame on Google, anyway.
----- Some Background Notes -----
The reason why I am looking for such solution is : I import a holiday calendar file which will set alarm for each DAY!! and there's no way to roll back previous calendar (while Google Contacts let you roll back, Google Calendar don't have much capability!).
What I can do is
1. export this messed-up calendar to google.ics
2. write a script to get rid of those messy events (CREATED: Some Specific DATE/TIME)
3. Delete ALL events from your google calendar
4. Use above method to re-import the new ics files which contains your original events with correct alarm/reminders
The best workaround I could find was suggested on Twitter by #jxchong. I created a new Google Calendar with the desired alert set as a default, and imported the events I want alarms on to it. This only works when I want the same alarm set on each event.

iCal Not Recognized By Google

I've created an iCal which I'm trying to use in Google Calendar, but no events are being displayed. The feed is at here. Each event looks like the following, and two iCal validators are telling me it's a valid file. Does google need an extra field for each entry?
I created my own iCal dumper at https://views.scraperwiki.com/run/days_of_the_year_1/ , which builds the source piece by piece. It won't work when I subscribe online via Google calendar, but if I save, then import the source the events are added. I guess there must be an out of place character in feed2ical's ouput.
I know it's been a long time, but I finally noticed that my old feed2ical script was busted in various ways. It should be fixed now and I put the source on github as well. Man I really didn't know python when I wrote that :) It's still pretty crappy code, but it validates now and works in Google Calendar, Apple's iCal, and Microsoft Outlook.
http://feed2ical.appspot.com, https://github.com/dsanvita/feed2ical

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

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 Calendar.
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.

Resources