Getting All Content Nodes of Particular Document Type
I've seen some samples of how to accomplish this in XSLT, was wondering if anyone had a snippet for how to handle it in Razor? I just want to get a list of all nodes with a particular document type and loop through them displaying the names.
Getting All Content Nodes of Particular Document Type
I've seen some samples of how to accomplish this in XSLT, was wondering if anyone had a snippet for how to handle it in Razor? I just want to get a list of all nodes with a particular document type and loop through them displaying the names.
Hii Chris.
Try this :
@Model.AncestorOrSelf().Descendants("nodeTypeAlias")
Hi gilad,
Thanks for the reply!
How do I loop through the resulting nodes?
I've tried:
but it's throwing an error.
Hii, sorry.
Add .Items to first line :
Is there a way to return all nodes except for a certain document type? eg.
You could eventually do something like this
Hope this helps
//fuji
in 7.7.2
is working on a reply...