Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • John Walker 43 posts 66 karma points
    Aug 11, 2011 @ 19:28
    John Walker
    0

    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

    var pagesToList = @Model.DescendantsOrSelf("NewsArticle").Where("Visible").OrderBy("UpdateDate desc");

     

    Thanks

    John

  • Sebastiaan Janssen 5045 posts 15477 karma points MVP admin hq
    Aug 11, 2011 @ 19:29
    Sebastiaan Janssen
    0

    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/

  • John Walker 43 posts 66 karma points
    Aug 11, 2011 @ 19:35
    John Walker
    0

    Thanks very much Sebastiaan, that worked fine taken from build Wednesday, August 10, 2011 12:05 PM 6681670 4.7.1.419.zip



Please Sign in or register to post replies

Write your reply to:

Draft