[Zope] Variable rendering in a <dtml-with> statement

Sture Lygren sture@rocketrange.no
Wed, 06 Oct 1999 22:22:00 +0200


Hi!

Guess you people are tired of me asking so many questions - sorry.
Hopefully this one will be of the last I send (I'm nearly there).

I have this code:

<dtml-if foldername>
 <dtml-with PARENTS[-1].Documents.foldername>  <--- Doesn't work 
  <dtml-in "objectValues(['Folder','File'])" skip_unauthorized=1>
   <dtml-if "meta_type=='Folder'">
    <a href="?foldername=<dtml-var id>">       <--- foldername passed
back
     <img src="<dtml-var icon>">                    this method
    </a> <dtml-var id><br>
   <dtml-else>
    <img src="<dtml-var icon>"> <dtml-var id><br>
   </dtml-if>
  </dtml-in>
 </dtml-with>
</dtml-if>

What I try to do is to show a persons hieracy of folders and files
starting at the top level. Thereafter I will add 'copy', 'cut', 'paste',
'delete' and 'rename' functions to the view (sort of like the
manage_workplace one).

Basically I'm stuck here - could someone please tell me how (if
possible) to fix the above code to a working one, or poit me to a
working scheme?

Many thanks in advance!

Sture Lygren