[Zope-CMF] cmf/plone: display folder contents
Dieter Maurer
dieter@handshake.de
Mon, 15 Jul 2002 19:55:47 +0200
Jan Ulrich Hasecke writes:
> I want to display all documents in a CMF Folder with this code from
> the Zope Book.
>
> div tal:repeat="item python:here.objectValues( [ 'Document' ] )">
> <a href="Sample.tgz"
> tal:attributes="href item/getId"
> tal:content="item/title">Sample.tgz</a><br />
> <span tal:content="item/description">Beschreibung</span><br /><br />
> </div>
>
> This works as long as all documents in the folder are visible or
> published. When one document is private, the user is prompted to
> login.
Look at the classes in "ZTUtils". One of them allows for authentication
filtering.
Dieter