[Zope] Newbie PARENTS question

Chris Cooke-Johnson chriscj@gocarib.com
Wed, 29 Sep 1999 17:27:29 -0400


Hi there,

I'm trying to reference the folder above from a DTML method. Basically
what I'm looking for is an equivalent to the the <!--#var id--> which
will give the id of the parent folder. In the DTML reference I found an
explanation of the PARENTS attribute with seems to be what I want but
I'm getting errors with both:

<!--#var PARENTS[1]-->
and
<!--#expr PARENTS[1]-->

How do I do this?

Also, is it possible to nest calls? I.E. How can I make:

<!--#var <!--#var id--><!--#var_another_method--> --> or similar

In other words how can I make a compound call based on path (or other) variables?

Thanx in advance.

Chris