Events Calendar How?

Author Message

Arran Price

Tuesday 14 December 2004 1:38:11 pm

Hi all,
Im trying to produce a simple events calendar, where in my events page I can show the current weeks events by default as a list in the main content area, and have a month table in the right hand section, where I can select the week (by clicking on any date) and choose, previous, next month.

Ive done a fair amount of looking around in the site and Im getting a little confused as to the best approach.

Theres a calendar tool, which I tried to add to the top toolbar (via the admin interface) - which dosent work for me (the image dosent appear to exist when adding the tool and I notice no changes to the toolbar itself).

Theres also a couple of templates in the ezpublish default install (3.4.4) ./design/standard/templates/navigator/monthview.tpl
./design/intranet/override/templates/monthview.tpl
which I havent figured out their purpose or how to use it.

Then theres a community supplied extension of an events calendar which took me a while to figure out how to work, but I got the furthest with. The biggest downfall of this one appears to be that it dosent use an event class (which has some implications in regards to the attributes I want events to have as well as not appearing to fit with the use of content classes as a standard).

Ive noticed a number of ezpublish sites have calendars working and would like to know how people have gone about it.

thanks in advance

Arran

Tore Skobba

Wednesday 15 December 2004 12:45:59 am

Hi

Calendar seems to be a very popular requst.. I have used the Agenda plug in as I found the monthview from EZ very hard to use.. In the end I did not manage to make an even calendar of it..

The way I used the agenda was to make an calendar event class containing several customized attributes, in addition I had date: date_from and date_to. I then edited the agenda template code to fecth on calendar_event/date_from and calendar_event/date_to. For an example se:

http://www.grunderskolen.no/content/view/full/440/day/15/month/12/year/2004

In order to customize it I belive you will have to learn some template code.

Cheers
Tore

Arran Price

Tuesday 21 December 2004 5:48:32 pm

Thanks Tore

the agenda template appears easily to be the best way to go.
After messing around with it for all of 10 minutes I have the month view looking great.
All I need to do is sort out the day view and Im good to go.

cheers

Arran

Planet Grey

Thursday 17 March 2005 2:28:51 am

how can I add an agenda and/or calendar to an ez site

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 04:26:05
Script start
Timing: Jan 31 2025 04:26:05
Module start 'layout'
Timing: Jan 31 2025 04:26:05
Module start 'content'
Timing: Jan 31 2025 04:26:05
Module end 'content'
Timing: Jan 31 2025 04:26:05
Script end

Main resources:

Total runtime0.0173 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 588.1250151.2109
Module start 'layout' 0.00580.0031 739.335936.6328
Module start 'content' 0.00890.0068 775.968890.0000
Module end 'content' 0.01570.0015 865.968833.9922
Script end 0.0173  899.9609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002715.3588140.0002
Check MTime0.00127.0394140.0001
Mysql Total
Database connection0.00074.105310.0007
Mysqli_queries0.002916.867130.0010
Looping result0.00000.092210.0000
Template Total0.00116.510.0011
Template load0.00095.173310.0009
Template processing0.00021.344610.0002
Override
Cache load0.00063.630510.0006
General
dbfile0.001910.756780.0002
String conversion0.00000.057840.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