[Zope] dtml-in and if

Dieter Maurer dieter@handshake.de
Wed, 22 Aug 2001 23:18:39 +0200 (CEST)


James van der Veen writes:
 > <dtml-in "objectValues(['Informatie', 'sitenieuws'])" start=3Dquery_st=
art
 > size=3D"6" sort=3Dbobobase_modification_time reverse>
 > <dtml-if "publish=3D=3D'true'">
 > <dtml-var title>
 > </dtml-if>
 > This means it wil find all the objects if the publish property is true=
.=20
 > But here is my problem. If if I want 6 of the titles on my frontpage
 > (size=3D6) it doesn=B4t work because the fist 6 it might find aren=B4t=
 publish =3D
 > true
Please have a look at "ZopeFind".

Alternatively, you can filter in a Python script....


Dieter