Hi,
I have a numeric property called grade set to my pages. I’m trying to get the pages based on grades and tried with
@{
dynamic node = new umbraco.MacroEngines.DynamicNode(1059);
}
@foreach (var page in node.Children.Where("grade < 3").OrderBy("CreateDate desc"))
{
@page.name
}
This is not working. I’ve also tried getting the levels with a simple if statement but then it cannot find the property “grade”. Any ideas on how to solve this? Thanks
This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/73474-problem-with-foreach-and-numeric-property