Hi again everyone, I am really getting deeper and deeper into Zope and find it amazing what you can do with it. Well, I would rather be supposed to take care about my studies - but that's a different story ;-)... As I go further and further, of course more and more questions arise. Usually I try to find the answers in the mailinglist's archive. If there is another good (searchable) source of information, could someone please point me to that. Ok, now my question: I want to count the number of files within a folder (the folder does not have subfolders), so I can say "This folder countains ## pictures". How can that be done? Thank you very much in advance, Jan Jan@Mountainbikehq.de http://www.MountainbikeHQ.de - Your home for DH, DS and CC Mountainbiking
On Tue, Sep 18, 2001 at 09:42:57AM +0200, Jan Lentfer wrote:
I want to count the number of files within a folder (the folder does not have subfolders), so I can say "This folder countains ## pictures". How can that be done?
See the DTML User's Guide, Table 2 (discusses the len() method) and search the Zope Help for "objectIds", but I think the following untested code would work: This folder contains <dtml-var "_.len(objectIds('Image'))"> pictures. -- Mike Renfro / R&D Engineer, Center for Manufacturing Research, 931 372-3601 / Tennessee Technological University -- renfro@tntech.edu
participants (2)
-
Jan Lentfer -
Mike Renfro