[ZPT] Is there a way to translate the following into ZPT?

Evan Simpson evan@zope.com
Fri, 05 Oct 2001 14:53:54 -0400


Tom Deprez wrote:

> <p><a href="&dtml-URL0;?expand_all=1">Expand All</a> |
>    <a href="&dtml-URL0;?collapse_all=1">Collapse All</a>
> </p>
> <dtml-tree branches_expr="objectValues(['Folder','File', 'Structured 
> Text Document'])">
>   <dtml-if "meta_type=='File' or meta_type=='Structured Text Document'">
>     <a href="&dtml-absolute_url;"><dtml-var title_or_id></a>
>   <dtml-else>
>     <dtml-var title_or_id>
>   </dtml-if>
> </dtml-tree>

There's an example of using ZTUtils.TreeMaker in the zpt_examples.zexp in 
PageTemplates/examples.  It's not clean or intuitive yet, but it can get the 
job done.

Cheers,

Evan @ Zope