Function: RenderAddComment

Creates a section to add comments to a topic.

Documentation

TODO

Parameters
  • DESCRIPTOR - Optional - Adds a adjective to "Comment." This is useful if you have more than one kind of comment in a topic.
  • TARGET - Optional - Specify the target where comments are added. Defaults to the BASETOPIC. Use to add comments to a parallel "discuss" topic.

Css

Implementation

Begin Comments section

This section preceeds the comments.
%STARTINCLUDE%
---+++!! %IFDEFINED{"%DESCRIPTOR%" then="$test" glue="off"}% Comments

%INCLUDE{"%TCAOWEB%.RenderCommentCountBar"  warn="off" DESCRIPTOR="%DESCRIPTOR%" }%
%IFDEFINEDTHEN{"%RESTRICTCOMMENTS%" as="yes" glue="off"}%
%~~    IFDEFINED{"%WIKINAME%" 
~~~        as="WikiGuest" 
~~~        then=" _Please $percntLOGIN$percnt or [[$percntSYSTEMWEB$percnt.UserRegistration][register]] to post comments._ " 
~~~        else="$percntCOMMENT{type=\"comment\" 
~~~             target=\"$percntIFDEFINED{\"%TARGET%\" then=\"$test\" else=\"%BASEWEB%.%BASETOPIC%#AddComment\" glue=\"off\" }$percnt }$percnt" 
~~~    }%
%ELSEDEFINED%
%COMMENT{type="comment" target="%IFDEFINED{"%TARGET%" then="$test" else="%BASEWEB%.%BASETOPIC%#AddComment" glue="off" }%" }%
%FIDEFINED%


%STOPINCLUDE%

Test

User Comments

Be the first to post a comment.

bubble Wiki Guest said...

Calls to 'RenderAddComment'

(C) 2006 LynnwoodBrown@Skyloom.com

This file is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. For more details read the LICENSE.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY, to the extent permitted by law; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Middle Fork Home Wiki? Send feedback
Syndicate this site RSS