Generate .ics files

Author Message

Tony Stark

Thursday 21 February 2008 9:21:25 am

Does anyone know if a way/extenstion/method for generating .ICS (Calendar) files on the fly from appropriate content classes? Is it even possible within eZ?

Marco Zinn

Thursday 21 February 2008 11:48:29 am

Hi Tony,

i'm pretty sure, that you can do this with ez, as it is only a way of rendering data, that you store in the content object.

Some thoughts
- Of course, you need to know the specifications of the .ics format, from demo data (exported from your application)
- You will need to create a class with the data you need
- you will need a template (e.g. a view mode "ics") for your class
- you probably will need an "empty" pagelayout to get rid of all the HTML/Meta/Body-Tags (and i think, you must declare this pagelayout somewhere.... not sure)

Actually... i think, thats about it ;)

Marco
http://www.hyperroad-design.com

Ekkehard Dörre

Monday 07 April 2008 7:06:42 am

Hi Tony,

you can look into existing extensions and change them.

There are many:

http://projects.ez.no/index.php/extract
http://projects.ez.no/index.php/cie
http://ez.no/developer/contribs/import_export

and at wikipedia about the format:
http://en.wikipedia.org/wiki/ICalendar

and the [RFC 2048] Internet Calendaring and Scheduling Core Object Specification (iCalendar)

http://tools.ietf.org/html/rfc2445

Greetings, ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

Guillaume Kulakowski

Saturday 06 September 2008 2:20:39 am

Hi Tony,

for a personal project, I develope an iCal extension. If you want, you can try it : http://trac.llaumgui.com/browser/ez_publish/ezical/trunk

At this time, I did not start to write the documentation and the importation module is not start.

But, the ICS's export work and is compatible with the webin's event class but

My blog : http://www.llaumgui.com (not in eZ Publish ;-))
eZC on RHEL : http://blog.famillecollet.com/pages/Config-en
eZC on Fedora : just "yum install php-channel-ezc"

Andrew White

Monday 08 September 2008 7:36:05 am

I'm not sure if this would satisfy your need, but a much simpler approach would be to embed hcalendar information. This is a microformat that relies on CSS classes to denote information. There are scripts and browser extensions available that can identify microformat content in page, and change them to other formats, such as iCal.

More information here: http://microformats.org/wiki/hcalendar

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 03:33:02
Script start
Timing: Jan 31 2025 03:33:02
Module start 'layout'
Timing: Jan 31 2025 03:33:02
Module start 'content'
Timing: Jan 31 2025 03:33:02
Module end 'content'
Timing: Jan 31 2025 03:33:02
Script end

Main resources:

Total runtime0.0214 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0045 588.0078151.1953
Module start 'layout' 0.00450.0029 739.2031220.6719
Module start 'content' 0.00740.0126 959.87501,001.7422
Module end 'content' 0.02000.0014 1,961.617237.9922
Script end 0.0214  1,999.6094 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002511.6295140.0002
Check MTime0.00104.4958140.0001
Mysql Total
Database connection0.00062.664710.0006
Mysqli_queries0.00167.704330.0005
Looping result0.00000.037910.0000
Template Total0.00104.710.0010
Template load0.00073.431410.0007
Template processing0.00031.210310.0003
Override
Cache load0.00052.379410.0005
General
dbfile0.00167.637480.0002
String conversion0.00000.022340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs