This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JForum and the fly likes Posts - Display in Reverse Chronological Order? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » JForum
Bookmark "Posts - Display in Reverse Chronological Order?" Watch "Posts - Display in Reverse Chronological Order?" New topic
Author

Posts - Display in Reverse Chronological Order?

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Please don't shoot the messenger... We are trying out jForum as our intranet blogging tool. The President is experimenting with a blog and has asked that the replies to his post be displayed in reverse chronological order. Is that possible with jForum? (Personally I prefer it as it is - all of the other Blogs I read are sorted as they come in...)

Thanks,
Shannon
[originally posted on jforum.net by sdevaul@aarcorp.com]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
I think you could globally change this behavior by modifying the underlying SQL query. Not sure of the exact one, but it's probably one of the TopicModel queries. You can find these either in your specific Database directory or the generic.sql queries (generic has the default and the db type queries override as needed).

Another possible option is to look at the templates and see if FreeMarker will let you order the Topics list. E.g. instead of a #list can you do a For i=topic.length-1;... thing. One problem is that if you have more than one page of topics then this would be for that page only.
[originally posted on jforum.net by monroe]
 
jQuery in Action, 2nd edition
 
subject: Posts - Display in Reverse Chronological Order?