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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]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" <[EMAIL PROTECTED]>
> > >
> > > > 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 - [EMAIL PROTECTED]
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 )