[Zope] Re: Acces to other directory, example : ../../foo via python:???.getFolderListingFolderContents()

peter mathis peter.mathis at kombinat.at
Fri Jan 21 02:59:33 EST 2005


in the page template just make the following


<tal:block define="obj python:here.restrictedTraverse(path);
		   listing 
python:obj.getFolderListingFolderContents(suppressHiddenFiles=1)">
	<tal:listing repeat="item listing">
		your folder listing
	</tal:listing>
</tal:block>





KLEIN Stéphane wrote:
> Hello,
> 
> In one plone directory, to display the items of directory I use this code :
> 
> <tal:foldercontents define="folderContents 
> python:here.getFolderListingFolderContents(suppressHiddenFiles=1)">
> ...
> 
> I hope display the items directory of other directory (not ./). So, I 
> would like use other instruction than "here". Example "../../foo".
> 
> How can I do that ? Thanks for your help.
> 
> Stéphane
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
> Tool for open source databases. Create drag-&-drop reports. Save time
> by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
> Download a FREE copy at http://www.intelliview.com/go/osdn_nl



More information about the Zope mailing list