This works: <!--#var "_.len(objectValues('Folder'))"--> Note that this won't automagically include folder-like products or Z Classes descended from Object Manager. There's no objectValues() that has isinstance() behaviour (yet). So if you have any such objects, the most convenient way to do it right now is: <!--#var "_.len(objectValues(['Folder', 'MyFolderType']))"--> Hope this helps. -- Alexander Staubo http://www.mop.no/~alex/ "`This must be Thursday,' said Arthur to himself, sinking low over his beer, `I never could get the hang of Thursdays.'" --Douglas Adams, _The Hitchhiker's Guide to the Galaxy_
-----Original Message----- From: dyork@mercury.mv.net [mailto:dyork@mercury.mv.net]On Behalf Of Dan York Sent: 30. juni 1999 01:09 To: zope@zope.org Subject: [Zope] Count of folders within another folder?
Hi all, I've got a question that I can't solve myself... in Zope (1.10.2), I've got a site listing a bunch of Linux training centers. In the root folder, I want to include in one of my DTML Documents, a count of all of the subfolders inside of another folder.
Root --> Folder (called "centers") --> Folder for each individual center
Somehow I want a count of how many folders are found inside of the folder called "centers".
I've been playing with the "in" and "with" tags, but so far haven't been able to solve my problem.
Any suggestions will be greatly appreciated.
Regards, Dan -- -------------------------------------------------------- Dan York, Certification Program Manager, Linuxcare, Inc. dyork@linuxcare.com http://www.linuxcare.com/ 415-740-4519 mobile, 603-268-0691 tel, 603-268-0103 fax Linuxcare. At the center of Linux. --------------------------------------------------------
_______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope
(For developer-specific issues, use the companion list, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )