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
Hello all,
I am trying to extend on the basic paging withing the UForum project and need to work out how I can get a count of the comments against a topic. My latest attempt is below;
<xsl:variable name="topicID" select="number(umbraco.library:ContextKey('topicID'))"/><xsl:variable name="topic" select="uForum.raw:Topic($topicID)/topics/topic"/><xsl:value-of select="count($topic/comment)"/>
Any help would be much appreciated.
John
Hi John
Does your count return anything? Or does it return a wrong number?do you get any xml out if you write this
<textarea><xsl:copy-of select="$topic" /></textarea>
?
/Jan
Thanks Jan,
I had not actual needed to right out the xml to screen, being my first umbraco site! But that has helped me loads can now see the field I need;
<replies>11</replies>
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
Topic comments count
Hello all,
I am trying to extend on the basic paging withing the UForum project and need to work out how I can get a count of the comments against a topic. My latest attempt is below;
<xsl:variable name="topicID" select="number(umbraco.library:ContextKey('topicID'))"/>
<xsl:variable name="topic" select="uForum.raw:Topic($topicID)/topics/topic"/>
<xsl:value-of select="count($topic/comment)"/>
Any help would be much appreciated.
John
Hi John
Does your count return anything? Or does it return a wrong number?
do you get any xml out if you write this
<textarea>
<xsl:copy-of select="$topic" />
</textarea>
?
/Jan
Thanks Jan,
I had not actual needed to right out the xml to screen, being my first umbraco site! But that has helped me loads can now see the field I need;
<replies>11</replies>
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.