ICalendar ICS file can a VEVENT contains a VTODO? - icalendar

I searched far and wide for this but couldn't find the answer and maybe you guys can help.
http://www.ietf.org/rfc/rfc5545.txt
http://www.kanzaki.com/docs/ical/vevent.html
http://msdn.microsoft.com/en-us/library/ee219935(v=exchg.80).aspx
(Just to name a few site i visited)
What I want to achieve:
I am creating an web application that would allow users to create meetings and stuffs. (PHP, HTML, Javascript/JQuery, etc.). I found ics (ICalendars) to be very efficient and well structured and wanted to implement a variation of the ics standard in my application. But I wanted my meetings to have there own todos.
Question:
Can an .ics VEVENT contains a VTODO? Or is this not in the ics standards?
Something like this:
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Foobar Corporation//NONSGML Foobar//EN
METHOD:REQUEST
CALSCALE:GREGORIAN
BEGIN:VEVENT
//Put VEVENT options and parameters here.
BEGIN:VTODO
//Put VTODO options and parameters here
END:VTODO
END:VEVENT
BEGIN:VEVENT
//Other VEVENT... Probably with its own VTODO
END:VEVENT
END:VCALENDAR

No, VEVENT may only contain VALARM.
Since you probably want to associate tasks to events,
You can use the RELATED-TO property for this. Using this property, you can relate events to todos. On the RELATED-TO property you can specify what type of relationship you want. The default relationshiptypes are PARENT, CHILD and SIBLING.
RELATED-TO uses the UID to identify other components. This property is required for every component anyway.

Related

Add telephone number to ical

Is it possible to add a telephone number to an ical file? I currently have this set as the "ORGANIZER":
ORGANIZER;CN="{ORGANIZER_NAME}":mailto:{ORGANIZER_EMAIL}
I would like to add a phone number to be able to call the ORGANIZER from e.g. Apple calendar.
According to the RFC5545 specification, the organizer is of value type CAL-ADDRESS.
https://www.rfc-editor.org/rfc/rfc5545#section-3.8.4.3
If one follows through on CAL-ADDRESS https://www.rfc-editor.org/rfc/rfc5545#section-3.3.3, it is defined as
The value is a URI as defined by [RFC3986] or any other IANA-registered form for a URI.
If one then clicks through on the RFC3986 specification link, to https://www.rfc-editor.org/rfc/rfc3986#section-1.1.2 and in particular the examples being easier to understand, one sees a tel example
tel:+1-816-555-1212
so just like the mail-to, one should be able to use .
Of course one has to check whether the receiving applications will cope with it. They don't support the specs 100%.

update calendar from email link

Obviously I'm not using the right keyword/phrases to find the information that I need. Any help in pointing me in the right direction would be greatly appreciated.
I've generated an ICS file. I put a link to this file in an email. What I would like to happen is that the recipient clicks the link and it updates their calendar (regardless of OS, platform). Currently the link simply downloads the ICS file but does not update any calendar.
Background: I belong to a non-profit organisation that runs several courses that members can subscribe to. This means that each members course list will be different therefore I can not simply send out a single list or have people subscribe to lots of different 'events' to have their calendars updated.
Is this doable or am I simply dreaming :-)
Jeff, what happens when some one clicks on an ics link depends on their device and the program that they are reading the email in, and how they have setup their defaults - eg what calednar app. EG: I have mine setuo to download ics files for testing purposes, and if i click on a downloaded one it opens in notepad++.
Of course most people will not have that. However, not that easy to make it happen automatically, have to tell users.
To have updates (ie syncing) happen, recipients need to subscribe to the link, not import the data. If they are not familiar with using multiple calendars, they can get confused.
instructions on google: https://support.google.com/calendar/answer/37100 on apple calendars https://support.apple.com/en-au/guide/calendar/subscribe-to-calendars-icl1022/mac. Rather annoyingly, iphones will offer a user who clicks on a normal http..ics url an option to import all events. To make the iphone offer the subscribe option one has to use the unofficial apple icalendar prefix webcal. So one ends up either showing both link options on a webpage, or doing device detection and showing webcal for macs.
hope that clarifies.

Parse Author Style Sheet in timeline

So, according to this article from April 2014 (by Ilya Grigorik),
the timeline doesn’t show a separate Parse CSS entry
but I guess this has changed since then, as there now seems to be a separate event for this, named Parse Author Style Sheet (Parse Stylesheet in Canary/Chrome 46)
Was the Parse Author Style Sheet/Parse Stylesheet event separated from the Recalculate Style event? What exactly does each of these two events now capture?

VALARM Description Is Not Showing

I am trying to create a VALARM for a VEVENT with customized VALARM message. So based on RFC5545, I just have to set action to DISPLAY and set my customized message in the DESCRIPTION field of the VALARM component.
"When the action is "DISPLAY", the alarm MUST also include a
"DESCRIPTION" property, which contains the text to be displayed
when the alarm is triggered."
However, even if I set the DESCRIPTION property, the message is still not being displayed in the alarm popup.
BEGIN:VALARM
ACTION:DISPLAY
TRIGGER;VALUE=DURATION:-PT15M
DESCRIPTION:Test Message
END:VALARM
I have tried it on my iphone calendar application and Mozilla Thunderbird Lightning Addon.
Any feedback is greatly appreaciated.
Thank You.
The formatting of your VALARM is correct, so the only logical answer is that whatever iCalendar application you are using, does not support DESCRIPTION (which is something I see on occasion)
You should do it the other way round: Create a calendar event with your calendar application, export it to file and see how it looks like.
That way I solved a similar problem: I spent some time trying to import calendar events to my brand new Android 5 phone. After import all alarms were lost. It turned out that the calendar app does not fully understand ICS files (iCal Version 2.0) but the old VCS format (iCal Version 1.0). Strange but true.

How to create a To field like the one in Mail or Facebook app?

Does anyone know how to create a 'To field' like the one in Mail or Facebook app?
When an address is added from the A-Z list, a blue component that represents the address will be added to the text field. Is there a class provided for this functionality, or do we have to implement by ourselves?
There's no built-in framework. You'll either need to implement it yourself or use one of the open source components, such as Three20 (which includes the one used in the Facebook app).
In Three20's author's blog I found these few lines:
Message composer
TTMessageController emulates the
message composer in Apple's Mail app.
You can customize it to send any kind
of message you want. Include your own
set of message fields, or use the
standard "To:" and "Subject:".
Recipient names can be autocompleted
from a data source that you provide.
Maybe you should take a look at its source code at github.