[Zope] Checking if an image exists/simple question
Holger Hoffmann
hohoff@rz.uni-potsdam.de
Thu, 10 Feb 2000 01:31:10 +0100
Hi,
"H.G.J. van der Linde" wrote:
> <dtml if exist(mwid)>
> showphoto
> <dtml else>
> showanotherveryinterestingpicture
> </dtml-if>
>
> How do I do this?
>
> Your help is very much appreciated,
<dtml-if mwid>
<img src="/psychologie/mwfoto/<dtml-var mwid>">
<dtml-else>
showanotherveryinterestingpicture
</dtml-if>
or you could try:
<dtml-var mwid missing="Some default text">
... Holger