Quantcast
Channel: ActiveTopics
Viewing all articles
Browse latest Browse all 72689

Children of Root Node that are of a Specific Document Type

$
0
0

Once again I am being challenged by this Razor malarky! All I want to do is get the first child node under the root that is of a specific document type so that I can list out links to their child pages but no matter what I try the "Enumeration yielded no results"! 

I've tried the following with no success:

@Model.Ancestor().Children.Where("NodeTypeAlias == \"doctypeAlias\"")
@Model.Ancestor().doctypeAlias
@Model.Ancestor().Descendants("doctypeAlias")

Am I doing something very obviously wrong?


Viewing all articles
Browse latest Browse all 72689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>