[Zope] dtml-if question

Stephan Goeldi stephan.goeldi@datacomm.ch
Thu, 03 Jan 2002 14:33:58


I am pulling a list of names out of an SQL database to show their name and 
adress etc. In a specific zope folder are some pictures of SOME names. If 
there exists a picture for a certain name, it should be displayed. If not, 
there should be a placeholder. What is the correct syntax of this?

What I think of is something like this:

<dtml-in dep_cc>
<LI><a href="mailto:<dtml-var EMAIL>"><dtml-var NAME></a>
  <dtml-if LOGIN.jpg>
        <img src="<dtml-var LOGIN>.jpg">
    <dtml-else>
      no picture!
  </dtml-if>
</dtml-in>


















_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com