[Zope] conditional dtml-in ?

Steffen Hausmann Steffen@Hausmann-family.de
Thu, 08 Nov 2001 17:06:29 +0100


Ruberl Michele wrote:

 > Hi everybody,
 >
 > is there a way of making <dtml-in> loops conditionally?
 >
 > I would need something like <dtml-in expr="objectValues('MyZClass')"
 > where="my_attribute == 1">
 > Does anybody have a method doing this or a way to help me?


Hi,

you can use a modified version of the python script they used in the 
zope book ( tree-tag ) to get all documents
in a folder that have the property visible = true.

    http://www.zope.org/Members/michel/ZB/AdvDTML.dtml

MfG Steffen


-- 
become who you are