[Zope] Newbie: dtml-unless
Farrell, Troy
troy.farrell@wilcom.com
Mon, 12 Mar 2001 10:18:29 -0600
I haven't tested this, but it looks like you are performing your if tests
outside the loop.
Try this:
<dtml-in expr="foldername.objectValues()">
<dtml-unless "'id' == 'standard_html_header'">
<dtml-unless "'id' == 'standard_html_footer'">
<a href="<dtml-var absolute_url>"><dtml-var id></a><br>
</dtml-unless>
</dtml-unless>
</dtml-in>
Troy
-----Original Message-----
From: Stephan Goeldi [mailto:stephan_goeldi@hotmail.com]
Sent: Monday, March 12, 2001 10:06 AM
To: zope@zope.org
Subject: [Zope] Newbie: dtml-unless
I'd like to list the content of a folder, except if it is the
standard_html_header or footer. I use this code:
<dtml-unless "'id' == 'standard_html_header'">
<dtml-unless "'id' == 'standard_html_footer'">
<dtml-in expr="foldername.objectValues()">
<a href="<dtml-var absolute_url>"><dtml-var id></a><br>
</dtml-in>
</dtml-unless>
</dtml-unless>
It works except of the fact, that standard_html_header and footer are listed
anyway. Can anybody point me into the right direction please?
TIA
-goe-
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
_______________________________________________
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 )