#2910 closed enhancement (fixed)
RFE: Configuration of default forum sorting
Reported by: | Owned by: | Radek Bartoň | |
---|---|---|---|
Priority: | normal | Component: | DiscussionPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.10 |
Description
It would be great with a configuration option for forum sorting. As of now the default sorting is by ID, ascending. It would be great if you could choose which column to sort by and which direction to sort (ASC/DESC).
Attachments (0)
Change History (5)
comment:1 Changed 17 years ago by
Status: | new → assigned |
---|---|
Summary: | Configuration of default forum sorting → RFE: Configuration of default forum sorting |
comment:2 Changed 17 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Implemented in r3518. Don't forget to enable DiscussionApi component on 0.10.
comment:3 Changed 17 years ago by
Thanks for the fix, but I think there's still something wrong (at least in my installation). Check it out here: http://www.eobjects.dk/trac/discussion/1?&order=id
As you can see even when I press the "ID" it always sorts descendingly. And it doesn't even change if I modify trac.ini.
In my log it says:
2008-04-16 10:31:08,179 Trac[loader] WARNING: Cannot load plugin spamfilter.ip_blacklist because it requires "dnspython>=1.3.5" 2008-04-16 10:31:08,224 Trac[loader] WARNING: Cannot load plugin spamfilter.bayes because it requires "spambayes"
Even thought I've installed both dnspython and spambayes (using APT).
Here's the important parts of trac.ini:
[components] tracdiscussion.api.DiscussionApi = enabled tracdiscussion.admin.DiscussionWebAdmin = enabled tracdiscussion.core.DiscussionCore = enabled tracdiscussion.init.DiscussionInit = enabled tracdiscussion.search.DiscussionSearch = enabled tracdiscussion.timeline.DiscussionTimeline = enabled tracdiscussion.wiki.DiscussionWiki = enabled tracdiscussion.notification.DiscussionNotifyEmail = enabled tracspamfilter.* = enabled [discussion] title = Discussion default_display = flat forum_sort = id forum_sort_direction = asc topic_sort = id topic_sort_direction = asc
Is this maybe because I upgraded from an older discussion plugin?
comment:4 Changed 17 years ago by
No, I just forgot that direction is internally boolean and not string and I did't notice that during testing. Now it should be fixed.
OK, I'll take a look on it soon.