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...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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...