Hi! I have a question related to use of the calender tag. If I have this code: <!--#calendar mode=month--> <A HREF="/some/place/form"><!--#var date fmt=day--></A> <!--#/calendar--> Then - is there some way that the DTML method 'form' in /some/place/ can pick up what 'daylink' that was the caller, or is the only way to transfer variables between methods to use forms? I hope there is a solution to this as it would be fairly simple then to create an appointmet calendar kind of thing. Greatly appreciate your help! Sture Lygren
In article <19990423133303.A284@RaVER.duck.org>, <raver@box.dust.za.net> wrote:
If I have this code:
<!--#calendar mode=month--> <A HREF="/some/place/form"><!--#var date fmt=day--></A> <!--#/calendar-->
Then - is there some way that the DTML method 'form' in /some/place/ can pick up what 'daylink' that was the caller, or is the only way to transfer variables between methods to use forms?
You can pass it as a query string. Something like: <!--#calendar mode=month--> <A HREF="/some/place/form?date=<!--#var date fmt=spam-->"> <!--#var date fmt=day--> </A> <!--#/calendar--> (where spam is one of the formats that yields YYYY-MM-DD or MM-DD-YYYY or what have you... I can never remember the date formatting options) Alternately, with more magic you could include the date as part of the URL. (/some/place/form/1999-05-14)
I hope there is a solution to this as it would be fairly simple then to create an appointmet calendar kind of thing.
That's exactly the kind of thing it's inteneded for. The default UI is a clone of the Palm Pilot Datebook application, actually :-) P.S. to those of you who sent me mail with questions and enhancements to the calendar tag... I'm just starting to get myself dug out of a whole pile of work, so I should be able to hack on Calendar and TinyTables again soon.
On 23 Apr 1999, Ty Sarna wrote:
Alternately, with more magic you could include the date as part of the URL. (/some/place/form/1999-05-14)
Would Ty, or anyone else, care to expound on what this magic might be? I have an application I am working on which could really use something like this, but my brain is short-circuiting trying to figure out how to achieve it in a dynamic fashion. jkh
On Fri, Apr 23, 1999 at 03:34:45PM +0000, Ty Sarna wrote:
In article <19990423133303.A284@RaVER.duck.org>, <raver@box.dust.za.net> wrote:
If I have this code:
<!--#calendar mode=month--> <A HREF="/some/place/form"><!--#var date fmt=day--></A> <!--#/calendar-->
Then - is there some way that the DTML method 'form' in /some/place/ can pick up what 'daylink' that was the caller, or is the only way to transfer variables between methods to use forms?
You can pass it as a query string. Something like:
<!--#calendar mode=month--> <A HREF="/some/place/form?date=<!--#var date fmt=spam-->"> <!--#var date fmt=day--> </A> <!--#/calendar-->
(where spam is one of the formats that yields YYYY-MM-DD or MM-DD-YYYY or what have you... I can never remember the date formatting options)
Thanks a lot!! - things start to work here (finally). Now I'm down to only one question, how do I get to use the properties and variables documented in the CalenderTag class? Could you please give an DTML example?
Alternately, with more magic you could include the date as part of the URL. (/some/place/form/1999-05-14)
I hope there is a solution to this as it would be fairly simple then to create an appointmet calendar kind of thing.
That's exactly the kind of thing it's inteneded for. The default UI is a clone of the Palm Pilot Datebook application, actually :-)
P.S. to those of you who sent me mail with questions and enhancements to the calendar tag... I'm just starting to get myself dug out of a whole pile of work, so I should be able to hack on Calendar and TinyTables again soon.
_______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope
(For developer-specific issues, use the companion list, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
Sture
In article <19990423204523.A1002@RaVER.duck.org>, <raver@box.dust.za.net> wrote:
Now I'm down to only one question, how do I get to use the properties and variables documented in the CalenderTag class? Could you please give an DTML example?
Sure, here's a simple example that shows a calendar with weekend days shown on a red background,and with each day linked to the day-mode version of the display for that date. <!--#calendar--> <!--#if "date.dow() in (0, 6)"--> <!--#call "setCalendar('cellbgcolor', 'red')"--> <!--#/if--> <a href="<!--#var "linkDate(date, 'day')"-->"> <!--#var date fmt=day--> </a> <!--#/calendar-->
participants (3)
-
Jeff K. Hoffman -
raver@box.dust.za.net -
tsarna@endicor.com