tags:

views:

175

answers:

1

Does anyone know how to recursively get the children of an item in a Sitecore web control? I'd rather not use Sitecore query because some of my paths have dashes in them which really screws things up. The Sitecore.Context.Item.getChildren() and Sitecore.Context.Item.Children property both returned just the top level children.

+4  A: 

From Sitecore, looks like the way to do this is Item.Axes.GetDescendants()

Kyle
Yes it is the best performed way.
Alex de Groot