tree-item-expanded gives only if the item is expanded, it doesn't gives the last expanded item (which should only be one; ie the last selected item) Tom. i Tom ! > Is there a way to know the last expanded branch of a dtml-tree? This may be what you need: <dtml-if tree-item-expanded> <b> </dtml-if> <dtml-var name> <dtml-if tree-item-expanded> </b> </dtml-if> Greetings, Maik