[Zope] Accessing a DTML object

G F gscotfleming@yahoo.com
Mon, 3 Jun 2002 08:39:47 -0700 (PDT)

I am hoping some knowledgeable person out there can
help me.

I am trying to make a simple little web calendar. The
first page that of the calendar is a list of dates
that come from a bunch of DTML Documents in a folder
called 'events'. Each DTML Document is an event. To do
this I use something like:

<dtml-in expr="events.objectValues()">

This makes a list of dates that are linked to a DTML
Method 'calendarItem'. I pass the variable cal_id to
'calendarItem' so it can display more information
about the date.

How do i use the variable 'calendarItem' to open the
DTML Document into an HTML page?

I tried:
<dtml-in expr="events.objectValues('DTML Document')">
 <dtml-if expr="id == cal_id">
   <dtml-var date><br>
   <dtml-var title><p>
   <dtml-var sequence-item>

But for some reason that did not work. It seams that
even if it did work there would be a better way. 

Thank you for your help.

Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup