Publish out a .ical file

dshaykew's Avatar

dshaykew

18 Oct, 2010 04:13 PM

Hi there.

I'm trying to publish out an ical file. I've created a new configuration for an event page that publishes out a .ical file, but I'm having trouble getting the contents of the file correct. Currently, the file publishes with <system-region name="DEFAULT"> tag in the contents. Is there a way I can configure the file type to publish without the XML region displaying?

The config settings are:

Configuration Set: UVicCaCoop
Template: _internal/templates/event-ical
Format: None applied
Publishable: Yes
Output File Extension: .ical
Serialization Type: XML
Include XML Declaration: No
Default Configuration: No

Region Name: DEFAULT
Format: _internal/formats/datadefinition/pages/event-ical

The template content is:

<system-region name="DEFAULT"/>

The published file's contents are:

<system-region name="DEFAULT">
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//hacksw/handcal//NONSGML v1.0//EN
BEGIN:VEVENT
UID:Graduate and Professional Schools Education Fair 20101026T000000Z 
DTSTAMP:20101026T000000Z 
ORGANIZER;CN=Amy Anon:MAILTO:[email blocked] 
DTSTART:20101026T000000Z 
DTEND:20101027T000000Z 
SUMMARY:Graduate and Professional Schools Education Fair  
END:VEVENT
END:VCALENDAR
</system-region>
  1. 1 Posted by Jason Aller on 18 Oct, 2010 06:19 PM

    Jason Aller's Avatar

    Take a look at http://ideas.hannonhill.com/forums/52559-cascade-ideas/suggestions/... for an idea in the idea forum that would support this.

    Until then I believe it is possible (though I haven't had the time yet to do so) to create a publish trigger tag that could strip off the offending bits and leave you with a clean .iCal file. Perhaps someone else has already written such a publish trigger? I'm thinking of how the Word docx publish trigger takes and zips up the xml output to make it into the correct format, some similar processing could instead just strip out the wrapping tags and not zip the output.

  2. Ross closed this discussion on 02 Mar, 2011 03:11 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac