Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Changing the default sort in a forum

Quote Reply
Changing the default sort in a forum
In one particular category, I'd like to have the threads initially sorted alphabetically rather than by most-recent-post (it's going to be a dictionary that users can add to).

Apologies if I'm missing something really obvious, but where is the default set? I'm looking at the forum_view template and see loop post_loop, but I'm getting stuck there, I guess...

Thanks!
Quote Reply
Re: [agaffin] Changing the default sort in a forum In reply to
The easiest way to go about this would be to change the link for that forum on the category_list.html template.

In the link to the forum, try adding this to the end of it, replacing "123" with the forum ID in question:

<%if forum_id == 123%>;sb=post_subject<%endif%>

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Quote Reply
Re: [Jagerman] Changing the default sort in a forum In reply to
Perfect, thanks!