[Zope] #tree - trouble

raver@box.dust.za.net raver@box.dust.za.net
Tue, 23 Mar 1999 19:46:09 +0100


On Tue, Mar 23, 1999 at 04:04:39PM +0100, Martijn Pieters wrote:
> At 12:25 23-3-99 , Sture Lygren wrote:
> >Hi!
> >
> >How come this code (from within index_html) doesn't show files and folders
> >within my folder?
> >
> ><!--#tree branches="objectValues(['Folder', 'File'])"-->
> ><!--#var id-->
> ><!--#/tree--> 
> >
> >(<!--#tree--> <!--#var id--> <!--#/tree-->) doesn't work either)
> >
> >This is using Zope 1.10.2 on linux (2.0.35)
> >
> First, you should use branches_expr, instead of branches. And second, it
> depends on what type of DTML object you have this code in. Is this code in
> a DTML Method or a DTML Document? If it is a Document, you'll have to
> specify the Folder you want the tree to start at::
> 
> <!--#tree expr="PARENTS[0]" branches_expr="objectValues(['Folder', 'File'])"-->
>   <!--#var id-->
> <!--#/tree--> 
> 

Got it working - thanks a lot!!!

> -- 
> Martijn Pieters, Web Developer 
> | Antraciet http://www.antraciet.nl 
> | Tel: +31-35-6254545 Fax: +31-35-6254555 
> | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj 
> | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 
> ------------------------------------------
> 
> 
> _______________________________________________
> 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 )
> 


Sture Lygren