开发者

Get Children Recursively in Sitecore CMS .NET

开发者 https://www.devze.com 2022-12-13 19:55 出处:网络
Does anyone know how to recursively get th开发者_StackOverflow社区e 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

Does anyone know how to recursively get th开发者_StackOverflow社区e 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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消