Comments display order

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
francistill
Regular
Posts: 30
Joined: Mon Apr 17, 2006 4:45 am
Location: Wellington New Zealand

Comments display order

Post by francistill »

Is there any way to show newest comments at the top of the comments list? I realise this violates all listserv etiquette but I've got a special reason for wanting to do it on one particular website.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Comments display order

Post by garvinhicking »

Hi!

You want to revert the comment display order from "oldest to newest" into "newest to oldest"?

For that you need to edit the entries.tpl file of the template you are using, search for

Code: Select all

{serendipity_printComments entry=$entry.id mode=$entry.viewmode}
and change it to

Code: Select all

{serendipity_printComments entry=$entry.id mode=$entry.viewmode order="ASC"}
(or was it 'DESC'? Can't remember. But one of them will work).

Best 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/
francistill
Regular
Posts: 30
Joined: Mon Apr 17, 2006 4:45 am
Location: Wellington New Zealand

thanks!

Post by francistill »

it is DESC and worked a treat!
Post Reply