[Zope] Calendar product

technews@egsx.com technews@egsx.com
Tue, 23 Nov 1999 20:09:55 -0500 (EST)


Hi Harry,

I got all the options to work with the calendar product.  This is a sample
code I made that has values set for each of the properties I tested.

<!--#calendar mode=month bgcolor=e3e3e3 -->

<!-- Set the letters for the day of the week -->
<dtml-call "setCalendar('daynames','ABCDEFG')">

<!-- Set the background color of the top cells -->
<dtml-call "setCalendar('leftbgcolor','red')">
<dtml-call "setCalendar('middlebgcolor','blue')">

<!-- Set the cell spacing and padding of a cell -->
<dtml-call "setCalendar('padding','5')">
<dtml-call "setCalendar('spacing','0')">

<dtml-if "mode=='month'">
  <a href="<!--#var "linkDate(date)"-->"><!--#var date fmt=dd--></a>
<dtml-elif "mode=='day'">
   <font size="+3"><b><!--#var date fmt=dd--></b></font>
</dtml-if>

<!--#/calendar-->



Adonis