Hi, as topic title says, I have changed the blog post comments so they are displayed in descending order - the most recent one on the top + numbering is reversed as well (comment marked as 1 is on the bottom of the page). As I have spent some time on that (especially on numbering) I though it might be useful for somebody if I share the way I did it:
1.go to developer/XSLT Files/BlogPostListComments.xslt 2.under line '<xsl:for-each select="$comments">' add ' <xsl:sort select="@created" order="descending"/>' for sorting in descending order by 'created' property and then '<xsl:value-of select="count(preceding-sibling::*) + 1"/>' for reversed numbering of blog posts (I added this one after ' <div class="comment-author vcard">' and inside <b> tags so it's nicely aligned with Gravatar).
it works for me in Umbarco 4.0.4.2 with blog4Umbraco 2.0.26, did not check other versions.
Blog comments in descending order
Hi, as topic title says, I have changed the blog post comments so they are displayed in descending order - the most recent one on the top + numbering is reversed as well (comment marked as 1 is on the bottom of the page). As I have spent some time on that (especially on numbering) I though it might be useful for somebody if I share the way I did it:
1.go to developer/XSLT Files/BlogPostListComments.xslt
2.under line '<xsl:for-each select="$comments">' add ' <xsl:sort select="@created" order="descending"/>' for sorting in descending order by 'created' property and then '<xsl:value-of select="count(preceding-sibling::*) + 1"/>' for reversed numbering of blog posts (I added this one after ' <div class="comment-author vcard">' and inside <b> tags so it's nicely aligned with Gravatar).
it works for me in Umbarco 4.0.4.2 with blog4Umbraco 2.0.26, did not check other versions.
hope this helps somebody :)
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.