[Zope] Re: Please help with Rendering Images in DTML

Dieter Maurer dieter@handshake.de
Wed, 29 Jan 2003 21:18:16 +0100


Dylan Reinhardt wrote at 2003-1-28 17:58 -0800:
 > At 05:39 PM 1/28/2003, Gary Speer wrote:
 > >With request setting QUERY_STRING = "myimage.jpg"
 > >
 > ><dtml-let "MyImage='folder/subfolder/'+QUERY_STRING")
 > ><dtml-with "restrictedTraverse(MyImage)">
You can not pass a "QUERY_STRING" component to "restrictedTraverse",
only a path component.

I do not know, what you need the QUERY_STRING for,
but I expect that is will contain parameters to be passed
into a method call.

This would look something like

  <dtml-let method="restrictedTraverse(path)"
            result="method(arg1,arg2,...)"
  >
    <dtml-with "result">
      ....


Dieter