Reverse Order Entries

Skinning and designing Serendipity (CSS, HTML, Smarty)
Post Reply
charlesrkiss
Regular
Posts: 8
Joined: Sat Nov 11, 2006 4:02 pm
Contact:

Reverse Order Entries

Post by charlesrkiss » Thu Dec 31, 2009 7:36 am

Is there any way that the oldest entries could appear at the top of the page and the newest entries at the bottom? Such as a reverse-order blog?

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Reverse Order Entries

Post by garvinhicking » Thu Dec 31, 2009 12:17 pm

Hi!

Yes, you can install the serendipity_event_categorytemplates plugin that allows you to define sort order per Category, and globally. You can then simply change the "timestamp DESC" to "timestamp ASC" (or sth. like that).

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

charlesrkiss
Regular
Posts: 8
Joined: Sat Nov 11, 2006 4:02 pm
Contact:

Re: Reverse Order Entries

Post by charlesrkiss » Thu Dec 31, 2009 4:17 pm

That's right, Garvin. Thanks!

"You can ... simply change the "timestamp DESC" to "timestamp ASC"."

Now it's exactly what I wanted.

Thanks again.

orang
Regular
Posts: 18
Joined: Wed Aug 16, 2006 9:03 am

Re: Reverse Order Entries

Post by orang » Wed Mar 16, 2011 4:59 am

Hi,

Does this plugin consider that you don't want to have old entries shown up?

Because that was my problem. I actually changed the function &serendipity_fetchEntries in the functions_entries.inc_alt.php a couple of years ago, so that it takes the current day and puts on top the entry nearest to that day in the future and then from there onwards all other future entries. Back then there wasn't a plugin for such a thing, so I changed the SQL statement. I wonder whether there is a plugin now?

Here is the website: http://www.weisenbacher.de/kfd/index.php


Thanks
Stefan

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Reverse Order Entries

Post by garvinhicking » Wed Mar 16, 2011 2:32 pm

Hi!

Using the serendipity_event_categorytemplates plugin, you can configure a default sort order, and a custom sort order depending on each category...that should help!

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

Sara Martin
Posts: 2
Joined: Thu Mar 17, 2011 7:52 am

Re: Reverse Order Entries

Post by Sara Martin » Fri Mar 25, 2011 9:08 am

This is right if you are doing this and just changing this , timestamp DESC. you can do whatever you required.

Post Reply