[Zope] Re: Please help with Rendering Images in DTML
Dylan Reinhardt
zope@dylanreinhardt.com
Tue, 28 Jan 2003 17:58:54 -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)">
><dtml-var title_or_id>: <dtml-var height>, <dtml-var width>
></dtml-with>
></dtml-let>
>
>generates the attribute error on GetItem
Try this:
<dtml-let MyImage="'folder/subfolder/'+QUERY_STRING">
HTH,
Dylan