[commits] [Wiki] changed: KronolithEmbedCalendars

Wiki Guest wikiguest at horde.org
Tue Feb 3 12:28:47 UTC 2015


guest [94.223.117.236]  Tue, 03 Feb 2015 12:28:47 +0000

Modified page: http://wiki.horde.org/KronolithEmbedCalendars
New Revision:  5
Change log:  added a bit at the beginning explaining the container parameter

@@ -1,8 +1,11 @@
  +Embedding Calendars in Kronolith Version 4.1.4
+
+It is possible to embed small views of your calendars in external  
websites. You can embed the same views that you can place on Horde's  
portal page. The following are examples of code to use to embed each  
view on an external blog or website. You should obviously edit the  
code with the correct server address and calendar name. The  
**'container'** parameter is arbitrary, but must both match the DOM id  
of the the div element and be unique across the whole page you are  
embedding in.

  **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&calendar=internal_qAJrkfuHbKlcFSBcadUkOg1&container=kronolithCal&view=Month"  
type="text/javascript"></script>
+<div id="kronolithCal"></div>
+<script  
src="http://hostname.example.com/horde/services/ajax.php/kronolith/embed?calendar=internal_qAJrkfuHbKlcFSBcadUkOg1&container=kronolithCal&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>
@@ -19,12 +22,11 @@
  **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.

+There are a number of examples on the web using the file imple.php  
which do not work with the newer versions of Kronolith.
  Note that the value of "view=" needs to be uppercase (this is wrong  
in some examples/paste code)



More information about the commits mailing list