Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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
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">
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
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
Ah or check out http://our.umbraco.org/projects/collaboration/ucomment/using-ucomment/19347-UComment-and-Razor
is working on a reply...
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.
Continue discussion
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
For sorting you'll need to update the xslt file and add a xsl:sort
Place that under the <xsl:for-eachselect="$comments">
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
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
Ah or check out http://our.umbraco.org/projects/collaboration/ucomment/using-ucomment/19347-UComment-and-Razor
is working on a reply...
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.