Copied to clipboard

Flag this post as spam?

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


  • Frost 70 posts 99 karma points
    Oct 26, 2011 @ 03:46
    Frost
    0

    Posts appearing in wrong order for Previous & Next buttons (uBlogsy 1.3.6.1)

    The List Post function pulls up my blog entries based on the order that they are in content tree, not the order by which they are published.

    This problem was remedied for 2.0 and 1.3.6 on this post, but the @prev and @next buttons still use the content tree order.

    Does anyone know how to make the previous and next buttons cycle through the articles in the order they were published (or created)?

    Thanks

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Oct 26, 2011 @ 13:02
    Anthony Dang
    0

    I took out order by post date to increase performance.

    There is the assumption that when posts a created they will be created/sorted in the correct order by the content editor. Umbraco by default puts new nodes at the bottom.

    If you wanted to work around this, you could download the source, copy and paste the 2 methods for GetNext and GetPrevious, and put them in app_code or as functions, then add OrderByDescending(x => x.GetProperty("uBlogsyPostDate")) after the call for GetPost(id)

     

  • Frost 70 posts 99 karma points
    Oct 26, 2011 @ 23:52
    Frost
    0

    THANK YOU!

    I will get on that and post an udpate. We appreciate your help and uBlogsy very much!

Please Sign in or register to post replies

Write your reply to:

Draft