Re: [Zope] Displaying all subobjects

2000-09-27 Thread Phil Harris
How about, Woah there boy! This is completely untested and untried in any way, caveat emptor!! create an dtml-method called iterate: with this contents: dtml-in "objectItems()" dtml-if "meta_type == 'Folder'" dtml-call "id['iterate']" /dtml-if dtml-var idbr/

Re: [Zope] Displaying all subobjects

2000-09-27 Thread Phil Harris
Actually, This would probably work a bit better (since the last one doesn't work at all 9¬) ) dtml-in "objectItems()" dtml-if "meta_type=='Folder'" dtml-call "restrictedTraverse(_['id']+'/iterate')(_.None,_)" /dtml-if dtml-var idbr /dtml-in - Original Message - From: [EMAIL

Re: [Zope] Displaying all subobjects

2000-09-27 Thread Chris Withers
Phil Harris wrote: dtml-in "objectItems()" dtml-if "meta_type=='Folder'" dtml-call "restrictedTraverse(_['id']+'/iterate')(_.None,_)" /dtml-if dtml-var idbr /dtml-in How about this untested: dtml-in "objectItems()" dtml-if "meta_type=='Folder'" dtml-with sequence-item

Re: [Zope] Displaying all subobjects

2000-09-27 Thread brocken22
Hallo Chris, thanks for the quick reply, but the method is displaying all the objects in the folder and I'd like to get only one metatype of objects(i.e.ZClass-cars)but for all levels. -- Sent through GMX FreeMail - http://www.gmx.net ___ Zope

Re: [Zope] Displaying all subobjects

2000-09-27 Thread Jeff Hoffman
On Wed, 27 Sep 2000 [EMAIL PROTECTED] wrote: Hallo Chris, thanks for the quick reply, but the method is displaying all the objects in the folder and I'd like to get only one metatype of objects(i.e.ZClass-cars)but for all levels. Try creating a DTML Method called 'iterate' (tested): ul