[Zope] ImageTag and dtml-try does not work!
Jaroslav Lukesh
lsh@wo.cz
Wed, 20 Nov 2002 17:23:35 -0000
| Odes=EDlatel: Ausum Studio <ausum_studio@hotmail.com>
| Obviously the image is not getting rendered. As a first measure try to
wipe
| out the html tags and see what happens. You should get at least see a
| consistent "<img ...>" string.
|=20
| Take into account that dtml-try, in your case, is not calling any image=
=2E
It
| only displays the strings -in this case the 'img' tag- that will do th=
e
| call once the page is rendered.
I think that it should be raise exception at:
<dtml-var expr=3D"_['id'] + '.jpg'">
which is twice! (when image does not exist) and raise exception that is
handled with dtml-try (again piece of critical code):
<dtml-try>
<a href=3D"<dtml-var expr=3D"_['id'] + '.jpg'">">
<img src=3D"<dtml-var expr=3D"_['id'] + '.jpg'">/thumb?width=3D180&height=
=3D300"
aligh=3D"right">
</a>
<dtml-except>
</dtml-try>
Thanks, J. Lukesh