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:
Mark Downie - Umbraco 7 and Umbraco 8 (and umbraco 4) Developer - Code Snippets - Glasgow - Scotland
I am Mark Downie a web developer who uses the Umbraco CMS. You can see examples of my Umbraco web sites at: http://www.markdevelopment.co.uk If you have any questions, please contact me. Thanks