[Zope] Tree tag: How to expand all leaves?
Martijn Pieters
mj@antraciet.nl
Wed, 26 May 1999 15:46:03 +0200
At 15:33 26/05/99 , Alexander Staubo wrote:
>Is there a way to tell the tree tag to expand all branches/leaves
>initially? Something <!--#tree expand_all=1-->?
Yes, by setting expand_all to a non-zero value =)
Set it in the namespace (using a call to REQUEST.set() or the #with using
_.namespace()), or call the document containing the tree with ?expand_all=1
So:
<!--#call "REQUEST.set('expand_all', 1)"-->
<!--#tree-->
<!--#/tree-->
will always display a fully expanded 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
------------------------------------------