Forums / General / Generate .ics files

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

eZ debug

Timing: Jan 18 2025 15:02:48
Script start
Timing: Jan 18 2025 15:02:48
Module start 'content'
Timing: Jan 18 2025 15:02:49
Module end 'content'
Timing: Jan 18 2025 15:02:49
Script end

Main resources:

Total runtime0.0196 sec
Peak memory usage2,048.0000 KB
Database Queries4

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0068 588.7188180.8516
Module start 'content' 0.00680.0057 769.570397.8047
Module end 'content' 0.01250.0071 867.375074.7031
Script end 0.0196  942.0781 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002110.6718120.0002
Check MTime0.00105.0352120.0001
Mysql Total
Database connection0.00115.504210.0011
Mysqli_queries0.003518.028940.0009
Looping result0.00000.148220.0000
Template Total0.006834.610.0068
Template load0.00073.577110.0007
Template processing0.006130.943710.0061
Override
Cache load0.00052.527310.0005
General
dbfile0.002713.7823100.0003
String conversion0.00000.032830.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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