Reputation: 4366
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.
Upvotes: 3
Views: 6635
Reputation: 4366
From Sitecore, looks like the way to do this is Item.Axes.GetDescendants()
Upvotes: 9