Forums / Setup & design / Events Calendar How?

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

eZ debug

Timing: Jan 31 2025 00:37:49
Script start
Timing: Jan 31 2025 00:37:49
Module start 'content'
Timing: Jan 31 2025 00:37:49
Module end 'content'
Timing: Jan 31 2025 00:37:49
Script end

Main resources:

Total runtime0.1789 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0083 587.9063370.3047
Module start 'content' 0.00830.0133 958.21091,001.3750
Module end 'content' 0.02160.1572 1,959.58593,891.4141
Script end 0.1788  5,851.0000 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00442.4718200.0002
Check MTime0.00130.7340200.0001
Mysql Total
Database connection0.00070.401510.0007
Mysqli_queries0.090450.54861410.0006
Looping result0.00130.74501390.0000
Template Total0.156887.710.1568
Template load0.00080.452310.0008
Template processing0.156087.223410.1560
Override
Cache load0.00050.303710.0005
Sytem overhead
Fetch class attribute can translate value0.00180.986310.0018
XML
Image XML parsing0.00020.120210.0002
General
dbfile0.00613.4226200.0003
String conversion0.00000.005630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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