<dtml-with myFolder> <dtml-in "objectValues(['DTML Document',])"> <dtml-var "_['sequence-item']"> </dtml-in> </dtml-with> Dany Rioux wrote:
I'm probably just being dumb... :)
--------<PASTE>---------- <dtml-var standard_html_header>
<p> <dtml-with News> <dtml-in objectValues> </dtml-in> </dtml-with> </p>
<dtml-var standard_html_footer> --------</PASTE>----------
This doesn't work. Nothing gets printed.
In the News folder is a DTML method called news999. Should it be a DTML document instead for this to work?
I tried the three methods you gave me. objectValues, "objectValues()" and "objectValues('[File]')" and even "objectValues('[news999]')" but empty everytime.
TIA
Dany
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Andy McKay Sent: Thursday, November 23, 2000 7:00 PM To: Chris Withers Cc: Dany Rioux; Zope Mailing List Subject: Re: [Zope] Newbie Question
Or even: <dtml-in "objectValues(['File'])"> if this news thing is a file.... ;-P
Or even:
<dtml-in objectValues>
;-)
Chris
Andy McKay wrote:
<dtml-in "objectValues()">
-- From: "Dany Rioux" <rdany@drioux.com>
Hi everyone,
Simple newbie question... :)
I've made a directory called News into which I will
put files named
newsXXX. X being a number from 999 to 001.
What I want to do is to tell zope to put each file into a document. Now, here is what I figured out.
<dtml-with News> <dtml-in ???> <--- that's where I'm stuck. I don't know how to iterate through a directory ... I want ALL the newsXXX displayed. </dtml-in> </dtml-with>
How do I do that?
TIA
Dany
_______________________________________________ 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 )