I'm struggling a little with how to create a side nav that only displays a specific content type. You can see my latest attempt below. The problem is that on this line var items = node.Descendants("Page").Items.Where(i => i.Visible); I need children, not descendants, which I could get with a 1 passed in, but I also want to use "Page" so I am not sure how to get both.
Side Nav of Content Type Page
I'm struggling a little with how to create a side nav that only displays a specific content type. You can see my latest attempt below. The problem is that on this line var items = node.Descendants("Page").Items.Where(i => i.Visible); I need children, not descendants, which I could get with a 1 passed in, but I also want to use "Page" so I am not sure how to get both.
Try:
And later instead of ChildrenAsList, use Children
Sorry, updated above post, I forgot you wanted the children instead of descendants.
Awesome, thank you very much!
is working on a reply...