[Zope] Tokenbased Filelist
Dieter Maurer
dieter@handshake.de
Wed, 13 Feb 2002 20:01:27 +0100
Frank Simon writes:
> Hi folks,
> How do I display a sorted list of files based on tokens?
> I extended the properties of some files like this:
> Name: Category, Value: A B C, Type: tokens
> Name: Comment, Value: some text, Type: text
>
> How do I display just the files that have token A and their comment?
You either use a ZCatalog (for searching) or "ZopeFind" (--> ZQR)
with an "expr" parameter for filtering.
ZCatalog can also sort (on indexes). Otherwise, you can use
"sequence.sort", a very powerful sorting facility.
> Also, is there a way to have this list displayed in any given
> subdirectory without actually moving the files there?
If you place something there that displays them there...
Of course, the ZMI does not do that for you.
Dieter