I am not sure what you mean by trying EventFolder. I have a folder called "events". I can use dtml-in and call all the dtml documents in the folder, but I only want to call one of them. --- eric.n.dunn@bankofamerica.com wrote:
Have you tried EventFolder?
G F <gscotfleming@yahoo.com> on 06/03/2002 11:39:47 AM
To: zope@zope.org cc: Subject: [Zope] Accessing a DTML object
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:
<ul> <dtml-in expr="events.objectValues()"> <li><a href="calendarItem?cal_id=<dtml-varid>"><dtml-var date></a> </dtml-in> </ul>
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> </dtml-if> </dtml-in>
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. Gary
__________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
__________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com