[Zope] Calendar product

Harry mail-zope@fizbin.com
Wed, 24 Nov 1999 11:40:16 -0800


on 11/24/1999 11:00 AM, Joshua Brauer at joshua@brauer.org wrote:

> I'd like to setup three calendars on one page... I have the name thing working
> so I can have three, but I'd like to have this month as well as last and next
> months. I can't figure how to get the date to the calendar so that it likes
> it.

I have the product downloaded - let me know if you still need it, and I can
send it to you.

Also, in terms of adding the date to Calendar, I believe this was solved by
Adonis (technews@egsx.com) on this list. I'll enclose their solution at the
end:

<!--#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-->