I've got a very simple tree tag and want all items to be expanded upon initial viewing. <dtml-tree branches_expr="objectValues()" sort=id> <dtml-if "meta_type=='Folder'"> <IMG SRC="<dtml-var icon>" BORDER=0> <b><dtml-var title></b> <dtml-else> <A HREF="<dtml-var tree-item-url>"> <dtml-if "title!=''"> <IMG SRC="<dtml-var icon>" BORDER=0> <font size=+3><b><dtml-var title></b></font></A> </dtml-if> </dtml-if> </dtml-tree> If I put this code before the tree tag it produces an error. <dtml-call "REQUEST.set('expand_all', 1)"> Zope has encountered an error while publishing this resource. Error Type: KeyError Error Value: branches Troubleshooting Suggestions This resource may be trying to reference a nonexistent object or variable branches. The URL may be incorrect. The parameters passed to this resource may be incorrect. A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the HTML source for this page. If the error persists please contact the site maintainer. Thank you for your patience. Traceback (innermost last): File /Zope/lib/python/ZPublisher/Publish.py, line 214, in publish_module File /Zope/lib/python/ZPublisher/Publish.py, line 179, in publish File /Zope/lib/python/Zope/__init__.py, line 202, in zpublisher_exception_hook (Object: ElementWithAttributes) File /Zope/lib/python/ZPublisher/Publish.py, line 165, in publish File /Zope/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: index_html) File /Zope/lib/python/ZPublisher/Publish.py, line 102, in call_object (Object: index_html) File /Zope/lib/python/OFS/DTMLMethod.py, line 145, in __call__ (Object: index_html) File /Zope/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__ (Object: index_html) File /Zope/lib/python/TreeDisplay/TreeTag.py, line 154, in render (Object: a tree tag) File /Zope/lib/python/TreeDisplay/TreeTag.py, line 210, in tpRender (Object: ElementWithAttributes) KeyError: (see above) Any ideas? -- Jason Spisak 444@hiretechs.com