AnsweredAssumed Answered

ok, here's how to sort topics in a forum by created date

Question asked by stk137 on Aug 14, 2007
Latest reply on Aug 14, 2007 by stk137
I figured out way to sort topics by create date.  Although I'd really like to sort them by the date of their last post (most recent child).  If anyone has an idea on how please share.

Until then, here's how to sort topics in a forum by created date.

add this forum.jsp
(I added it after the Replies column)

<%– Created column - added to supporting sorting topics by date –%>
<a:column style="text-align:left">
<f:facet name="header">
<a:sortLink label="#{msg.created}" value="replies" styleClass="header"/>
<h:outputText value="#{r.created}">
<a:convertXMLDate type="both" pattern="#{msg.date_time_pattern}" />

add this to web-client-config-custom.xml

<!– changing default sort of topics in a forum to descending created date.  
       Note: this depends on the enhanced forum.jsp page –>
<config evaluator="string-compare" condition="Views">