[Zope] tree tag global navigation

Michael Bernstein mbernstein@profitscape.net
Wed, 24 Feb 1999 16:36:01 -0800


Martijn Pieters wrote:

> >Step 2: Create a DTML method named SideBar in your root folder with the
> >following code:
> >
> ><!--#tree branches=getFoldersOnly-->
> ><A HREF="<!--#var BASE1-->/<!--#var tree-item-url-->"><!--#var id--></A>
> ><!--#/tree-->
> >
>
> You can skip the External Method if you use the branches_expr tag, instead
> of the branches tag, like so:
> <!--#tree branches_expr="objectValues(['Folder'])"-->
> <A HREF="<!--#var BASE1-->/<!--#var tree-item-url-->"><!--#var id--></A>
> <!--#/tree-->

Is there a performance difference between these two approaches? If not, I
think I would prefer to factor out the method, as it might come in handy
somewhere else.

Michael Bernstein