Reverse Order Entries

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

Reverse Order Entries

Post by charlesrkiss »

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?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Reverse Order Entries

Post by garvinhicking »

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 3:02 pm
Contact:

Re: Reverse Order Entries

Post by charlesrkiss »

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: 23
Joined: Wed Aug 16, 2006 9:03 am

Re: Reverse Order Entries

Post by orang »

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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Reverse Order Entries

Post by garvinhicking »

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 6:52 am

Re: Reverse Order Entries

Post by Sara Martin »

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