icalendar view

Author Message

Artturi Markko

Tuesday 16 January 2007 1:45:07 pm

Hello,

I'm planning to set up ez with for several groups, each group having its agenda managed on an external site. Each agenda will be accessible via an url pointing to an icalendar file.

Is there a way to retrieve that data and show it in an ez template ?

Thanks in advance,

Artturi

Xavier Dutoit

Tuesday 16 January 2007 8:41:56 pm

Create a template operator that parse the the file and generate a table with the events.

$events=$icalendar|parseicalendar()

Then you can use it to display the calendar (there is a contrib, use it as an exemple).

http://www.sydesy.com

Artturi Markko

Tuesday 16 January 2007 11:41:02 pm

<quote>
Create a template operator that parse the the file and generate a table with the events.

$events=$icalendar|parseicalendar()

Then you can use it to display the calendar (there is a contrib, use it as an exemple).
</quote>

I guess you mean I have to implement the "parseicalendar" operator. Well, this sounds a bit ambitious...
By the way, which contrib do you think of ? (ezagenda ?)

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 18 2025 18:38:13
Script start
Timing: Jan 18 2025 18:38:13
Module start 'layout'
Timing: Jan 18 2025 18:38:13
Module start 'content'
Timing: Jan 18 2025 18:38:14
Module end 'content'
Timing: Jan 18 2025 18:38:14
Script end

Main resources:

Total runtime1.1865 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0100 587.7891152.6094
Module start 'layout' 0.01000.0045 740.398439.4297
Module start 'content' 0.01451.1703 779.8281530.7031
Module end 'content' 1.18490.0016 1,310.53138.1953
Script end 1.1864  1,318.7266 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.3246160.0002
Check MTime0.00160.1359160.0001
Mysql Total
Database connection0.00080.071110.0008
Mysqli_queries1.128995.1478570.0198
Looping result0.00060.0508550.0000
Template Total1.131095.320.5655
Template load0.00200.167420.0010
Template processing1.129095.158220.5645
Template load and register function0.00010.009910.0001
states
state_id_array0.00110.090810.0011
state_identifier_array0.00150.129120.0008
Override
Cache load0.00160.1377210.0001
Sytem overhead
Fetch class attribute can translate value0.00120.101820.0006
Fetch class attribute name0.00080.066640.0002
XML
Image XML parsing0.00080.064720.0004
class_abstraction
Instantiating content class attribute0.00000.000740.0000
General
dbfile0.00070.0609160.0000
String conversion0.00000.000840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs