Repeating Events/Caledar Items

Author Message

Jim Thaxton

Tuesday 21 October 2008 2:34:06 pm

I am relatively new to using ez Publish, but have experience with other CMS products and work with a solid team of developers who are more familiair with ez Publish.

I am working on a university project and they would like to have repeating events, specifically for student seminars and symposiums. I was wondering how others have tackled repeating events. Most other CMS tools I have used have some repeating event functionality, or we rolled it by hand. Esentially, we always created distinct objects (or nodes in ez terms) for each event as determined by the repeating criteria, for example, every Monday for the next 4 weeks, etc.

Are there other approaches or tactics that might be more useful in ez Publish? It would be great to hear what other groups have tried and where their successes have been and what pieces are tougher.

I assume an ez Component will be put together to handle the repeating events, but if this wheel has already been invented, I'd love to reuse existing work or help improve any current projects.

Thanks in advance!
--Jim Thaxton
Senior Developer
Duo Consulting

Web Developer
Coupon Cabin
Chicago, IL

Ɓukasz Serwatka

Tuesday 21 October 2008 4:14:58 pm

Hi Jim and welcome to the eZ Publish Community!

It should be easy to enhance ezwebin calendar functionality without involving any extra libs. Everything you can solve using eZ Publish tpl language. I would enhance a event class from Website Interface by adding repeat option then on tpl level do some logic for repeating events. Data you can fetch from DB using eZ Publish fetch functions.

http://ez.no/doc/ez_publish/technical_manual/4_0/reference/template_fetch_functions

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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 21:17:01
Script start
Timing: Jan 18 2025 21:17:01
Module start 'layout'
Timing: Jan 18 2025 21:17:01
Module start 'content'
Timing: Jan 18 2025 21:17:03
Module end 'content'
Timing: Jan 18 2025 21:17:03
Script end

Main resources:

Total runtime2.0726 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0088 589.0469152.6250
Module start 'layout' 0.00880.0040 741.671939.4609
Module start 'content' 0.01282.0582 781.1328526.7188
Module end 'content' 2.07100.0015 1,307.85168.3203
Script end 2.0725  1,316.1719 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.1899160.0002
Check MTime0.00170.0830160.0001
Mysql Total
Database connection0.00170.084210.0017
Mysqli_queries2.022197.5638540.0374
Looping result0.00060.0302520.0000
Template Total2.024397.721.0122
Template load0.00200.094120.0010
Template processing2.022497.579121.0112
Template load and register function0.00020.008010.0002
states
state_id_array0.00100.050310.0010
state_identifier_array0.00220.107420.0011
Override
Cache load0.00160.0767160.0001
Sytem overhead
Fetch class attribute can translate value0.00100.049420.0005
Fetch class attribute name0.00160.076430.0005
XML
Image XML parsing0.00080.039220.0004
class_abstraction
Instantiating content class attribute0.00000.000930.0000
General
dbfile0.00090.0447180.0001
String conversion0.00000.000440.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs