Copied to clipboard

Flag this post as spam?

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


  • Fredrik 89 posts 108 karma points
    Dec 16, 2010 @ 10:17
    Fredrik
    0

    Change order of items created in content

    Hi,

    Is it possible to change the order of created content?

    If I for example have:

    Product1

    Product2

    Product3

    And want to change it to:

    Product3

    Product1

    Product2

  • Dan 1288 posts 3921 karma points c-trib
    Dec 16, 2010 @ 11:10
    Dan
    2

    Certainly is.  Just right click the parent node and select 'sort'.  You can then drag your items around to the desired order.  You might need to republish the site if you're on an old version of Umbraco as the order used to cache sometimes, but the newer versions (4.5+) seem to just work.

  • Kim Andersen 1447 posts 2196 karma points MVP
    Dec 16, 2010 @ 15:54
    Kim Andersen
    3

    Just a small tip if you don't already know it. When you're in the Sort-window, besides draging the nodes up and down, you can also click the headers in the table. This way you can easily sort all of your nodes by name, creation date og the original sort order. The same can of course be used when sorting media nodes as well.

    /Kim A

  • Chris Gaskell 59 posts 142 karma points
    Dec 16, 2010 @ 17:52
    Chris Gaskell
    0

    Just as Dan describes, sorting the nodes is really easy but remember it all happens on the parent node!

    Chris.

  • Paul A 133 posts 368 karma points
    Feb 11, 2011 @ 15:45
    Paul A
    0

    @Kim... I hadn't noticed you could sort by column! Will save me lots of time, cheers

    ... update, damn, date sorting isn't working! that's what i was after http://umbraco.codeplex.com/workitem/29912

  • Ayo Adesina 445 posts 1059 karma points
    Jun 22, 2015 @ 10:21
    Ayo Adesina
    0

    Can this be done via code?

  • Proxicode 128 posts 324 karma points
    Jul 01, 2015 @ 02:11
    Proxicode
    0

    Do you mean something like this?

    var allPosts = CurrentPage.Children.OrderBy("createDate descending");
    

    Then do your foreach or whatever you do with them once they are sorted.

Please Sign in or register to post replies

Write your reply to:

Draft