6.0.0-git
2024-03-29
Last Modified 2015-01-26 by Guest

Embedding Calendars in Kronolith Version 4.1.4

The following will embed the month view of the calendar indicated by the calendar parameter:
<div id="kronolithCal"></div><script src="http://localhost/horde/services/ajax.php/kronolith/embed?token=5UrWNtIWpFwkxXALbL_fDg3&amp;calendar=internal_qAJrkfuHbKlcFSBcadUkOg1&amp;container=kronolithCal&amp;view=Month" type="text/javascript"></script>

The following will embed the "summary" view:
<div id="kronolithCal"></div>
<script src="http://localhost/horde/services/ajax.php/kronolith/embed?container=kronolithCal&view=Summary" type="text/javascript"></script>

You may add the following parameters to the summary view:
calendar=x Limit to events in the specified calendar.
days=x - limits the number of days shown in the summary view to x.
maxevents=x limits the number of events shown to x.

The following embeds the "monthlist" view:
<div id="kronolithCal"></div>
<script src="http://localhost/horde/services/ajax.php/kronolith/embed?container=kronolithCal&view=Monthlist" type="text/javascript"></script>

You may add the following parameters:
calendar
months
maxevents

There are a number of examples on the web using the file imple.php which do not work with the newer versions of Kronolith.

For most of the blocks, if you leave out the "calendar" parameter then all currently viewable (I believe only local) calendars would be shown. Otherwise, only the calendar specified in the calendar parameter is used.

If times are off you may need to set "date.timezone = MyTimeZone" in my php.ini.

Note that the value of "view=" needs to be uppercase (this is wrong in some examples/paste code)