[Zope] dtml-tree question
Jack Coates
jack@monkeynoodle.org
17 Jul 2002 16:37:18 -0700
The solution was to include the name of the folder I want the root to
be. This is what I'm using successfully now (in a Document, not a
Method):
<dtml-tree sng branches_expr="objectValues(['Folder', 'DTML Document'])"
sort=id skip_unauthorized>
<dtml-if "_.getitem('id',1) != 'index_html'">
<A HREF="http://www.sierranevadagroup.com/<dtml-var
tree-item-url>"><dtml-var title></A>
</dtml-if>
</dtml-tree>
thanks,
Jack
On Tue, 2002-07-16 at 12:42, Dieter Maurer wrote:
> Jack Coates writes:
> > ...
> > The results have been a blank page
> Someone else already suggested to use a DTML Method rather than
> a DTML Document. Using a DTML Document will result in an empty page.
>
> > or a syntax error every time.
> Then, you have a syntax error, probably in your "branches_expr".
>
> > These
> > two snippets seem like the most likely to work: can anyone tell me why
> > they don't?
> >
> > <dtml-tree branches_expr="objectItems(['Folder','DTML
> > Document','Image','File'])">
> This should be "objectValues" rather than "objectItems".
> Otherwise, it looks good.
> > <dtml-var id>
> > </dtml-tree>
> >
> > <dtml-tree branches=objectValues>
> > <a href="&dtml-tree-item-url;" target=display> &dtml-title_or_id;</a>
> > </dtml-tree>
> This, too, should work.
>
>
> Dieter
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
>
--
Jack Coates
Monkeynoodle: A Scientific Venture...