[Zope] dtml-tree question
Tue, 16 Jul 2002 21:42:45 +0200
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".
> two snippets seem like the most likely to work: can anyone tell me why
> they don't?
> <dtml-tree branches_expr="objectItems(['Folder','DTML
This should be "objectValues" rather than "objectItems".
Otherwise, it looks good.
> <dtml-var id>
> <dtml-tree branches=objectValues>
> <a href="&dtml-tree-item-url;" target=display> &dtml-title_or_id;</a>
This, too, should work.