I’m setting up an events calendar in EE…
What I’d like to do is have EE generate .vcs files on the fly so that my users can add the event to their calendaring application with a click.
This code creates the proper vcs format…
{exp:weblog:entries weblog="calendar" show_future_entries="yes" dynamic="on" limit="1"}
BEGIN:VCALENDAR
PRODID:-//Microsoft Corporation//Outlook 9.0 MIMEDIR//EN
VERSION:1.0
BEGIN:VEVENT
DTSTART:{entry_date format='%Y%m%d'}T123000Z
DTEND:{entry_date format='%Y%m%d'}T210000Z
LOCATION;ENCODING=QUOTED-PRINTABLE:
DESCRIPTION;ENCODING=QUOTED-PRINTABLE:{event_body}
SUMMARY;ENCODING=QUOTED-PRINTABLE:{title}
PRIORITY:3
END:VEVENT
END:VCALENDAR
{/exp:weblog:entries}How do I get this to go to the client as a “.vcs” file? Any help would be appreciated.