I have a simple macro for displaying news articles and I want the list to order descending but it just doesnt seem to want to order correctly, any ideas? Im running version 4.7.0
var pagesToList = @Model.DescendantsOrSelf("NewsArticle").Where("Visible").OrderBy("UpdateDate desc");
Descending doesn't work in 4.7.0. You can use the umbraco.MacroEngines.dll from the upcoming 4.7.1 release if you want, just copy only that dll from one of the recent nightly builds : http://nightly.umbraco.org/umbraco%204.7/4.7%20RC/
Razor Macro Ordering
Hello All,
I have a simple macro for displaying news articles and I want the list to order descending but it just doesnt seem to want to order correctly, any ideas? Im running version 4.7.0
Thanks
John
Descending doesn't work in 4.7.0. You can use the umbraco.MacroEngines.dll from the upcoming 4.7.1 release if you want, just copy only that dll from one of the recent nightly builds : http://nightly.umbraco.org/umbraco%204.7/4.7%20RC/
Thanks very much Sebastiaan, that worked fine taken from build Wednesday, August 10, 2011 12:05 PM 6681670 4.7.1.419.zip
is working on a reply...