[commits] [Wiki] changed: Doc/Dev/LegacyApps

Wiki Guest wikiguest at horde.org
Wed May 25 14:22:45 UTC 2011


guest [99.241.124.193]  Wed, 25 May 2011 14:22:45 +0000

Modified page: http://wiki.horde.org/Doc/Dev/LegacyApps
New Revision:  1.5
Change log:  Added some examples of how to embed calendars which I  
found very helpful.

@@ -88,4 +88,32 @@
  echo Horde::stylesheetLink('kronolith', 'mozilla');
  </code>

  Such a call would have to happen after the Registry has been  
initialized, and so that the output is echoed in the page's HTML HEAD.
+
+++ Using the calendar widgets to embed calendars
+
+See the help text for more information.  You can select either a  
single calendar or '__all' as the calendar to show all calendars. You  
can also specify the time period as well, just pass the same parameter  
name the block uses in the query parameters.
+
+Example upcoming events (monthlist) - show 2 months worth of events,  
but with a max. of 10 events:
+
+<code type="html">
+<div id="kronolist"></div><script
+src="http://host.example.com/horde/services/imple.php?imple=Embed/impleApp=kronolith/view=monthlist/calendar=calendar_name/container=kronolist/months=2/  
maxevents=10"
+type="text/javascript"></script>
+</code>
+
+Summary view (show 7 days worth of events only with alarms but only  
show up to 20 events max):
+
+<code type="html">
+<div id="kronosummary"> </div><script type="text/javascript"
+src="http://hostname.example.com/horde/services/imple.php?imple=Embed/impleApp=kronolith/container=kronosummary/view=summary/calendar=calendar_name/days=7/maxvents=20/alarms=1"></script>
+</code>
+
+Summary view (show 7 days worth of events only with alarms but only  
show up to 20 events max) but with all shared calendars instead of one  
specific calendar:
+
+<code type="html">
+<div id="kronosummary"> </div><script type="text/javascript"
+src="http://hostname.example.com/horde/services/imple.php?imple=Embed/impleApp=kronolith/container=kronosummary/view=summary/__all/days=7/maxvents=20/alarms=1"></script>
+</code>
+
+The summary view makes a listing of upcoming events that can be used  
as an agenda and which prints nicely on 8.5X11 paper.



More information about the commits mailing list