Threaded Discussions

Function: RenderDiscussion

Render a discussion

Documentation

This function will display all comments to the current discussion (BASEWEB.BASETOPIC) listing them recursively in a threaded way. As long as the discussion is open (State=open) a form will be appended to the page to allow to reply to the discussion. Note, that each comment itself is displayed similar to the discussion itself allowing the communication to proceed from that point independently.

See also: RenderComments, RenderAddComment

Implementation

Main

%STARTINCLUDE%
~~~
%DBCALL{"Applications.DiscussionApp.RenderComments"}%
%IFDEFINEDTHEN{"%SKIN%" as="rss|atom|xml"}%
%ELSEDEFINED%
%$nopDBCALL{"Applications.DiscussionApp.RenderAddComment"}%
%FIDEFINED%
~~~
%STOPINCLUDE%

Test

Calls to 'RenderDiscussion'

Applications.ApplicationTopic
TopicType: TopicFunction, DocuTopic
Summary: Render a discussion
TWikiApplication: DiscussionApp
r0 - 15 Oct 2006 - 12:58:04 - TWikiContributor
© giant orange extension cord that reeks hip-hop, funk & soul