[Zope] ImageTag and dtml-try does not work!
Dylan Reinhardt
zope@dylanreinhardt.com
Wed, 20 Nov 2002 08:02:59 -0800
You don't have anything between <dtml-except> and </dtml-try>.
That's where the <img> tag for your thumbnail needs to go.
HTH,
Dylan
At 07:44 AM 11/20/2002, you wrote:
>Hi,
>
>I was foound that this code always does pass and does not run dtml-except
>
>Did somebody knows what can I do? Note that image name is get from
>expression in dtml-in (dtml-if does not work optimally when I was develop
>
>If image with given filename does not exist, it still want to display
>thumbnail, which is broken image.
>
>
><dtml-in expr="objectValues('DTML Document')" sort=id skip_unauthorized>
><dtml-try>
><a href="<dtml-var expr="_['id'] + '.jpg'">">
>
> critical part of code:
>
><img src="<dtml-var expr="_['id'] + '.jpg'">/thumb?width=180&height=300"
>aligh="right">
>
></a>
><dtml-except>
></dtml-try>
><dtml-var sequence-item fmt=structured-text></span><p>
></dtml-in>
>
>
>Many thanks for your help,
>
>J. Lukesh
>
>
>
>_______________________________________________
>Zope maillist - Zope@zope.org
>http://lists.zope.org/mailman/listinfo/zope
>** No cross posts or HTML encoding! **
>(Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )