[Zope] newbie questions

Rik Hoekstra hoekstra@fsw.LeidenUniv.nl
Wed, 10 Nov 1999 18:01:16 +0100


> -----Original Message-----
> From: eduardo@correo.sistelnet.es [mailto:eduardo@correo.sistelnet.es]On
> Behalf Of Eduardo Fernandez Corrales
> Sent: Wednesday, November 10, 1999 5:44 PM
> To: hoekstra@fsw.LeidenUniv.nl
> Cc: Arjan Scherpenisse; zope@zope.org
> Subject: Re: [Zope] newbie questions
>
>
> Hello,
>
> I am a newbie trying some of the code that people posts in the list.
>
> Rik Hoekstra wrote:
> ...
> >
> > try:
> >
> > <dtml-in "objectValues(['Folder'])">
> >   <a href="<dtml-var absolute_url>"><dtml-var id></a>
> > </dtml-in>
> >
>
> When I try the code above in a DTML Document I get nothing.

Ah, if you use a DTML Document you should use

<dtml-with PARENTS[0]>
 <dtml-in "objectValues(['Folder'])">
   <a href="<dtml-var absolute_url>"><dtml-var id></a>
 </dtml-in>
</dtml-with>

because a DTML Document is an object of its own, that does not contain other
objects. I assumed you were using a DTML Method that acts as a method of its
containing folder.


Rik