Re: [Lurker-users] "view newest messages" / mindex - keep th…

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Tomasz Chmielewski
Date:  
To: Wesley W. Terpstra, lurker-users
Subject: Re: [Lurker-users] "view newest messages" / mindex - keep the newest messages on top?
Wesley W. Terpstra schrieb:
> On Fri, May 15, 2009 at 9:11 AM, Tomasz Chmielewski <> 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

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Lurker-users mailing list

https://lists.sourceforge.net/lists/listinfo/lurker-users