+-------[ Martin Koekenberg ]---------------------- | Hello, | | Is it possible to use a DTML-In to display all DTML Documents in a folder exept | the one's with a centain value in a property ? | | Example. | | DTML Document one with property a=bc | DTML Document two with property a=de | DTML Document three with property a=bc | | Now I want to use DTML-IN to display all the dtml documents except the ones | with property a=de. | I also use the size and batchsize property to create links to the next 10 | documents..... If I use an if statement the next 10 can be 9 ore less 9 items | because there could be one ore more documents with a=de. | | Who can help me ?
Pseudo-code (dtml-like) <dtml-in "someListOfThings"> <dtml-with thecurrentitem> <dtml-unless "a=='de'"> <dtml-var thecurrentitem> </dtml-unless> </dtml-with> </dtml-in> Or you could write a python script that filtered out the ones you wanted and call the python script to return the list of things to display, which is probably a much better idea. -- Andrew Milton [EMAIL PROTECTED] _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )