Decent Blogging using TWiki

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
r1 - 2005-10-20 - 14:01:27 - TWikiContributor
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries.
Atmel®, AVR® and others are registered trademarks or trademarks of Atmel Corporation or its subsidiaries.
All other trademarks are the property of their respective owners.