Umbraco Razor List Pages of a Certain Type from Anywhere in the site
![Image](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoIULjwxaoZG_RKSE4vCWsYcunslJZHhHjeA5G8gRCgM_o-v31oNYNWmUPEwYMOD7CUIenu2NY0RBHXlMkAuvDprlBsYa7y1nQ8ZXDC8cPE2sOMiUtadeApE2wp7GxN5Tqp8G0u_c2G8s/s320/faqs.jpg)
The following script takes a look through all the nodes in the umbraco structure, and lists all the nodes of a certain type: (in this case "FAQ"s - good for Front Page News) @inherits umbraco.MacroEngines.DynamicNodeContext @foreach (var thisPage in @Model.Descendants("Faq").Take(5)) { <li style="text-align:left;"><a href="@thisPage.Url" style="color:#ffffff">@thisPage.Name</a></li> } To Sort by the updated date: @inherits umbraco.MacroEngines.DynamicNodeContext @foreach (var thisPage in @Model.Descendants("Faq") .OrderBy("UpdateDate descending").Take(5)) { <li style="text-align:left;"><a href="@thisPage.Url" style="color:#ffffff">@thisPage.Name</a></li> } Output: