[Zope] dtml-tree: how to jump to specific node?

Dieter Maurer dieter@handshake.de
Tue, 27 Nov 2001 22:07:05 +0100


Stephan Herschel writes:
 > I have a dtml-tree where i want to jump to a specific node, i.e. open
 > the tree down to where this node resides. Is there a simple way to
 > achieve this?
It is possible, but I fear it is not simple....

You can use the "tree-e" namespace variable to open a tree node.
Its value is an encodes sequence of ids describing the path
to the node. You find the encoding/decoding functions
in "Treedisplay.TreeTag": "encode_seq" and "decode_seq".


Dieter