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

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Feb 26, 2013 @ 10:15
    Tim Geyssens
    1

    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

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Feb 26, 2013 @ 11:25
    Tim Geyssens
    100

    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

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Feb 26, 2013 @ 11:26
  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies