RE: [Zope] calendar help (newbie)
Yes and I have read it (several times). What I am stuck on now is only showing newsletters prior to or equal to today's date. Here is what I have so far and it works (except for the not showing newsletters past today part). <dtml-calendar> <dtml-call "setCalendar('valign','top')"> <dtml-let d="date.Date()" hasdate="hasProperty(d)" prop="getProperty(d)" news="SiteSearch.searchResults(meta_type='newsLet', goLiveDate=date)"> <dtml-if news> <dtml-let path="SiteSearch.getpath(news[0].data_record_id_)"> <a href="&dtml-path;/nl_archive"><dtml-var "date.dd()"><br><dtml-var "news[0].nl_subject"></a> </dtml-let> <dtml-else> <dtml-var "date.dd()"> </dtml-if> <br> <dtml-if "hasdate==1"> <dtml-var dprop> </dtml-if> </dtml-let> </dtml-calendar> -Jamey
-----Original Message----- From: Dieter Maurer [SMTP:dieter@handshake.de] Sent: Thursday, November 09, 2000 3:17 PM To: James Sintz Subject: Re: [Zope] calendar help (newbie)
You know about the CalenderTag HowTo?
Dieter
James Sintz writes:
Yes and I have read it (several times). What I am stuck on now is only showing newsletters prior to or equal to today's date. When I remember right, the "calender" tag defines a variable that contains the date the current cell belongs to. The function "ZopeTime" gives you the current date. You can compare the two.
Dieter
participants (2)
-
Dieter Maurer -
James Sintz