Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Roger 195 posts 474 karma points
    Feb 25, 2013 @ 21:30
    Roger
    0

    UComment sorting

    Hi Tim,

    can you please tell me how to sort the uComments by latest comment.

    also, if there is any detailed information you can give on the pagination using razor please?

    thanks

    Roger

  • Comment author was deleted

    Feb 26, 2013 @ 10:15

    For sorting you'll need to update the xslt file and add a xsl:sort

    <xsl:sortselect="@created"order="descending"/>

    Place that under the <xsl:for-eachselect="$comments">

  • Roger 195 posts 474 karma points
    Feb 26, 2013 @ 11:19
    Roger
    0

    Works perfect thanks Tim.

    I'm not that great at Razor, are there any tips you can give me on adding the pagination?

    Many thanks in advance

    Roger

  • Comment author was deleted

    Feb 26, 2013 @ 11:25

    Yeah might be easier to do in xslt since there is no razor library or comment objects you can use, you'll have to do direct db calls

    For xslt check out these examples http://www.nibble.be/?p=11

  • Comment author was deleted

    Feb 26, 2013 @ 11:26
Please Sign in or register to post replies

Write your reply to:

Draft