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
Hi,
How to get all nodes which starts from one letter?
Thanks,
Alex
You could get the root node and then all its descendants into a collection and then use linq to return all nodes that start with the letter.
something like
var nodes = Model.Content.AncestorOrSelf(1).Descendants().Where(x => x.Name.StartsWith("l"));
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
How to get all nodes which starts from one letter?
Hi,
How to get all nodes which starts from one letter?
Thanks,
Alex
You could get the root node and then all its descendants into a collection and then use linq to return all nodes that start with the letter.
something like
var nodes = Model.Content.AncestorOrSelf(1).Descendants().Where(x => x.Name.StartsWith("l"));
is working on a reply...