<dtml-in "objectValues(['some meta type'])"> <dtml-if "_.string.find(_['sequence-item'].getId(),'mydoc') ==0"> do something here </dtml-if> </dtml-in> or preferably do it in a python script: #script called mydoc_filter import string l=context.objectValues(['some_meta_type']) retval=[] for a in l: if string.find(a.getId(),'mydoc'): retval.append(a) return a then in dtml: <dtml-in mydoc_filter> do something here </dtml-in> hth Phil ----- Original Message ----- From: "Breitenreicher, Marc" <Marc.Breitenreicher@friatec.de> To: <zope@zope.org> Sent: Monday, March 18, 2002 3:28 PM Subject: [Zope] DTML-IN only over special documents??
Hi, I've got a question concerning dtml-in.
I know that it is possible to loop only over DTML Documents in a folder containing objects of different type. But is it possible to loop only over documents, that id's e.g. start with 'mydoc' ???
Example-folder with the objects: mydoc1 mydoc35 picture567 picture33 mydoc98
So dtml-in shall only loop over 'mydoc1', 'mydoc35', 'mydoc98'
How can I do that?
TIA
Marc
_______________________________________________ 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 )