'cause everyone should have a blog

Function: RenderNextCommentNr

Compute the next comment nr given a current BlogEntry or BlogComment

Parameters

Implementation

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

Test

<1>

<1>

Calls to 'RenderNextCommentNr'

TopicForm
TopicType: TopicFunction
TopicDescription: Compute the next comment nr given a current BlogEntry or BlogComment

r2 - 21 Mar 2006 - 02:36 - TWikiAdminGroup
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding QBFreak.net? Send feedback
Powered by TWiki/Dakar Wed, 08 Feb 2006 build 8740