Umbraco Razor getNodes of a certain type

var getNodes = Model.AncestorOrSelf().Descendants("ShopItem"); // Programmes Nodes int numberOfNodes = getNodes.Count(); @numberOfNodes

Comments

Popular posts from this blog

Umbraco 7 HTML Site Map Partial View

Umbraco - Reset the Admin Password via SQL Server

Umbraco 9 - Strip HTML and Truncate text output