[Zope] Simple DTML (dtml-with) question ...

Darran Edmundson Darran.Edmundson@anu.edu.au
Thu, 18 Nov 1999 13:45:47 +1100


A simple question:

Say I have a folder (top) which has a child folder
(child).  Inside child is an image (childimage).  I.e.,

      top (folder)
       |
     child (folder)
       |
   childimage  (image

Trying to run the following snippet of DTML within
top gives (not surprisingly) the correct image id
but fails to render the image.

<dtml-with child>
   <dtml-with childimage>
      Image <dtml-var id> renders as <img src="<dtml-var id>">
   </dtml-with>
</dtml-with>

Is there a simple solution to this problem?  To me it looks
as if I need to prepend the path from the called folder to
the childimage folder.  Any help is much appreciated.

Cheers,
Darran.


-- 
Darran Edmundson [Darran.Edmundson@anu.edu.au]