Hi All,
Are you using the latest 2/2/11 version of the calendar revisions that put together?
Here's the latest recipe from the CMSB Cookbook
www.thecmsbcookbook.com.
To implement the Zickey calendar, you’ll need:
A multi record editor called “events”
A viewer called “calendar5.php”
A detail viewer called “events”detail.php”
The “calendar5.css” file
You can download all the required viewer files, the.css file, the events.ini.php file*, the terms.txt file, and a copy of Zickey’s help file, instructions.rtf from:
http://www.thecmsbcookbook.com/downloads/zickey_calendar5.zip
You can see an operating calendar example at
http://www.thecmsbcookbook.com/calendar5.php
The calendar contains sample events spanning February and November 2011 (February 3 is a single event with nothing but a start date)
***To make the calendar load the event entries from your site, the calendar5.php $dirsToCheck = array code on line 5 must be updated with your own path. You'll also need to modify the eventsDetail.php file the same way. If needed, you can find the path by opening the events editor in the CMS Builder "Code Generator".
Note: The eventsDetail.php viewer is for example only and taken directly from the CMSB code generator.
*** to create your own events editor, upload the events,ini.php file to your cmsAdmin/data/schemaPresets folder and then create the editor from the "select presets" pulldown menu
.
Setup is extremely simple:
1) create the “events” editor and create some test events.
2) Change the “l $dirsToCheck = array” paths and upload the calendar.php, and eventsDetail.php viewers to your server
3) Upload the calendar5.css file to your css directory
That’s it, the calendar should be fully functional.
The calendar uses a “maxwords” function to limit the amount of words shown on the calendar in the optional event description field. If you’re unfamiliar with the maxwords function you can learn more about it in the recipe, “LIMITING THE NUMBER OF WORDS SHOWN IN A PAGE”.
**** The Zickey calendar is a collaborative project, so if you make any useful changes, or add any functionality, please post your changes and additions to:
http://www.interactivetools.com/iforum/Products_C2/CMS_Builder_F35/P82903 As always, after you’ve got the example working, you can add any required fields and style the pages the way you’d like.
You can download them from here:
http://www.thecmsbcookbook.com/downloads/calendar5.zip
Hope that solves the issue.
Jerry Kornbluth
The first CMS Builder reference book is now available on-line!
Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php