[Zope] #tree - trouble

Martijn Pieters mj@antraciet.nl
Tue, 23 Mar 1999 16:04:39 +0100


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--> 

-- 
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 
------------------------------------------