Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-11-21 12:20:36

younglee
New Member
Registered: 2007-11-21
Posts: 2

Comments order

Hi,

Is it possible to change order of comments. Default is always putting newest comment below the older comment so is it possible to reverse it? Like newest comment on top?

Thanks…

Offline

#2 2007-11-21 13:16:21

zero
Member
From: Lancashire
Registered: 2004-04-19
Posts: 1,470
Website

Re: Comments order

Try this


BB6 Band My band
Gud One My blog

Offline

#3 2007-11-21 13:47:10

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: Comments order

I might be wrong but thought that now comments supported the sortdir=“desc/asc” attribute


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#4 2007-11-21 14:06:54

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Comments order

Not sortdir, just the sort attribute, which can take not only the column used for sorting, but also the sorting order (ASC/DESC), so you can now use this attribute/value set inside the txp:comments tag: sort="posted DESC", similar to how the sort attribute works for the article/article_custom tag.

Perhaps Textbook isn’t yet updated with this new information, but all TXP tags that generate lists (category_list, section_list, link_list, etc) now have a sort attribute. This was introduced in TXP 4.0.5

Offline

Board footer

Powered by FluxBB