Re: [Lurker-users] "view newest messages" / mindex - keep the newest messages on top?
Brought to you by:
terpstra
From: Tomasz C. <ma...@wp...> - 2009-05-19 21:48:49
|
Wesley W. Terpstra schrieb: > On Fri, May 15, 2009 at 9:11 AM, Tomasz Chmielewski <ma...@wp...> wrote: >> On the page where the messages are sorted by date - is it possible to >> have the most recent message at the top, not the bottom? > > You would need to modify the mindex.xsl file which determines how the > output html will look. Unfortunately, xslt is practically a > programming language, so requires some skill to change. This seems to do the trick - thanks for the tip! --- mindex.xsl.orig 2009-04-28 22:02:38.000000000 +0000 +++ mindex.xsl 2009-05-19 21:44:53.000000000 +0000 @@ -117,7 +117,10 @@ <xsl:text>)</xsl:text> </th> </tr> - <xsl:apply-templates mode="message" select="row"/> + <xsl:apply-templates mode="message" select="row"> + <xsl:sort order="descending" /> + </xsl:apply-templates> + </table> </div> </div> -- Tomasz Chmielewski http://wpkg.org |