Threaded Discussions

Function: RenderNextCommentNr

Compute the next comment nr given a current discussion or comment

Parameters

  • NAME: topic name of a comment or discussion

Implementation

%STARTINCLUDE%
*~~
%~~ DBQUERY{topics="%NAME%" separator="none" web="%BASEWEB%"
~~~    format="$expand(Nr and '.')"
~~~  }%
*~~ 
%~~ DBQUERY{"TopicType='Comment' AND TopicRef='%NAME%'" 
~~~    format="none" separator="none" web="%BASEWEB%"
~~~    header="$percntCALC{\"$EVAL($count+1)\"}$percnt"
~~~ }%
*~~
%STOPINCLUDE%

Test

<1>

Calls to 'RenderNextCommentNr'

Applications.ApplicationTopic
TopicType: TopicFunction
Summary: Compute the next comment nr given a current discussion or comment
TWikiApplication: DiscussionApp
r0 - 20 Dec 2006 - 18:33:42 - TWikiContributor
© giant orange extension cord that reeks hip-hop, funk & soul