i Recent Posts INVERT - Blogger Forums

Recent Posts INVERT

Blogger Help Forums Forums Blogger Widgets Recent Posts INVERT

This topic contains 3 replies, has 2 voices, and was last updated by  aneesh 8 years, 9 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #3218

    Toger64
    Member

    Hey,

    I very much like the "Recent Posts"-Widget, because it provides a good archive without having the need to show all the dates and months etc. in a stupid hierarchy.

    Question: Is it possible to show the oldest of the recent posts on top, then the one after, and so on…? Just like the original widget, but the other way around, the LATEST post should be at the bottom of the list….

    #3600

    aneesh
    Member

    which widget are you talking about?

    The plain recent posts widget or the Advanced Version of it using thumbails..

    In both cases it is possible,but you will have to modify the javascripts to that..

    #3601

    Toger64
    Member

    Hi,

    I am talking about the one without the thumbnails. I just want it to use as a kind of archive, looking like this, very basic-style:

    Day 01: Arrival

    Day 02: Sightseeing

    Day 03: . . .

    So how do I modify the javascript? Thanks for your help…

    #3602

    aneesh
    Member

    for (var i = 0; i < numposts; i++) in that external javascript file there is a loop like this

    change it to

    for (var i = numposts-1; i >=0; i–) to get the reverse effect.. you will have to use additional conditions for handling blogs which have less posts that what you give in the numposts..

    this code is located in the external js file.. so you will have to edit it and upload it somewhere else and reference it in the widget code!

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.