This topic provides a description of the public controls of the Forums module available in Page Edit mode:

Figure 1
 |
When using the Forums public controls, make sure you add a script manager in the .master file as shown below:
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
This is required since the introduction of RadEditor for ASP.Net AJAX.
|
Forums
Description
This is the universal Forums public control - it requires minimal settings for displaying forums. All that needs to be done to display all forums is add the Forums control
to a page.
The Forums public control is a ready-to-use control for handling forums. When added to a page, it lists all forums, and provides links to pages that display each of the forums,
their threads and their posts.
Figure 2 shows what the control displays after it is added to the page - all forums. If the forums are categorized, they are ordered by
categories.

Figure 2
Figure 3 shows what the control displays after clicking on one of the forum titles, in this case - Movies. A forum contains a number of threads.

Figure 3
Figure 4 shows what the control displays after clicking on one of the thread titles, in this case - Lord of the Rings. A thread contains a number of posts.

Figure 4
Setting the Public Controls
Following are some basic settings that need to be made to work with the Blog Posts control:
- Behavior section: Visible should be True
There are also several properties in the Misc section that allow for the setting of a page for each of the other available public controls of the Forums module. These are:
- EditPostPage - page that contains the Edit Post control
- AllForumsPage - page that contains the Forums List control
- SingleForumPage - page that contains the Single Forum control
- SingleThreadPage - page that contains the Single Thread control
There is one property that allows for setting a page that will require the user to login before posting to the forum:
- LoginPage - page that contains the Login control (available in the toolbox, Login section)
Figure 5 illustrates the available sections for the properties of Forums:

Figure 5
The Other Forums Public Controls - Separate Functionality
The Forums control provides complete functionality for using all parts of the forums module. However, in order to customize the display of forums or
display only a single forum part (for example, just a list of threads), you need to use a separate control. That is why there are four more controls for the Forums module:
These four controls are connected in a workflow that is demonstrated in Figure 6. Each of the blue rectangles represents a stage that a user goes through
when performing a certain action (the yellow arrows). The different public controls for Forums serve to provide the functionality needed at each of these states. Every control
provides functionality for the state with the corresponding name
Figure 6
 |
The Forums public control provides the whole workflow, unlike the rest of the controls. |
Forums List
Description
This is the Forums public control that displays a list of forums (see Figure 2)
In order to enable the links to each of the forums, a setting needs to be made as explained in the following section.
Setting the Public Controls
Following are some basic settings that need to be made to work with the Forums List control:
- Behavior section: Visible should be True
- Misc section: SingleForumPage should be set to a page that contains the Single Forum
control
- Data section: ProviderName should contain the name of the provider; in this case - Sitefinity
Figure 7 illustrates the available sections for the Properties of Forums List:

Figure 7
Single Forum
Description
This is the Forums public control that displays a single forum which contains a number of threads (see Figure
3)
In order to enable the links to each thread, a setting needs to be made as explained in the following section.
Setting the Public Controls
Following are some basic settings that need to be made to work with the Single Forum control:
- Behavior section: Visible should be True
- Misc section: AllForumsPage should be set to a page that contains the Forums List
control
- Misc section: SingleThreadPage should be set to a page that contains the Single Thread
control
- Misc section: EditPostPage should be set to a page that contains the Edit Post control
- Data section: ProviderName should contain the name of the provider; in this case - Sitefinity
 |
There will be no visible content in the control even after making the above-mentioned settings. The content will
be available only in live mode according to the workflow illustrated in Figure 6. |
Figure 8 illustrates the available sections for the properties of Single Forum:

Figure 8
Single Thread
Description
This is the Forums public control that displays a single thread which contains a number of posts (see Figure 4)
In order to enable the links to each post, a setting needs to be made as explained in the following section.
Setting the Public Controls
Following are some basic settings that need to be made to work with the Single Forum control:
- Behavior section: Visible should be True
- Misc section: SingleForumPage should be set to a page that contains the Single Forum
control
- Misc section: EditPostPage should be set to a page that contains the Edit Post
control
 |
There will be no visible content in the control even after making the above-mentioned settings. The content will
be available only in live mode according to the workflow illustrated in Figure 6. |
Figure 9 illustrates the available sections for the properties of Single Thread:

Figure 9
Edit Post
Description
This is the Forums public control that allows for editing a post. When a user clicks on the Edit link of a post, a new page with an editor appears. Figure 10 shows what is
displayed when the Edit link of the first post of "Lord of the Rings" thread (Figure Figure 4) is clicked:

Figure 10
Setting the Public Controls
Following are some basic settings that need to be made to work with the Edit Post control:
- Behavior section: Visible should be True
- Misc section: SingleForumPage should be set to a page that contains the Single Forum
control
- Misc section: SingleThreadPage should be set to a page that contains the Single Thread
control
 |
There will be no visible content in the control even after making the above-mentioned settings. The content will
be available only in live mode according to the workflow illustrated in Figure 6. |
There is one property that allows for setting a page that will require the user to login before posting to the forum:
- LoginPage - page that contains the Login control (available in the toolbox, Login section)
Figure 11 illustrates the available sections for the properties of Edit Post:

Figure 11
See Also