Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
How would I go about using this with Razor? I need to start from a specified node using Razor and then loop through the children of a specific doctype?
Model.NodeById(1234).Descendants("docTypeAlias")
And to loop through just the children (descendants go to deeper levels):
Model.NodeById(1234).Children.Where("NodeTypeAlias = \"docTypeAlias\"")
@Sebastiaan: Oops, good catch, I really should read the opening posts properly before replying!
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
GetXmlNodeById With Razor?
How would I go about using this with Razor? I need to start from a specified node using Razor and then loop through the children of a specific doctype?
Model.NodeById(1234).Descendants("docTypeAlias")
And to loop through just the children (descendants go to deeper levels):
Model.NodeById(1234).Children.Where("NodeTypeAlias = \"docTypeAlias\"")
@Sebastiaan: Oops, good catch, I really should read the opening posts properly before replying!
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.