Creating the Forums page |
The forums page will host the site's discussion forums. All the forum content will be displayed by this single page using the Forum group web part. In order for the page to display some content, there has to be some forum group defined via the administration interface.
Before you start creating the page, it is therefore recommended to create one forum group. In this chapter, you can see how a sample forum group can be created.
If you needed some more information about the Kentico CMS Forums module, you can find it in Kentico CMS Developer's Guide -> Module Forums.
1. Go to CMS Desk, select the root of the content tree and click New. Choose the Page (menu item) document type.
2. In the following dialog, choose to Create a blank page using the Simple layout. Enter Forums into the Page name field and click Save.
3. Switch to the Properties -> Template tab and click the Edit template properties link.
4. In the pop-up window, switch to the Layout tab and replace the layout code with the following code:
Click Save.
5. Switch to the Design tab. You can see only one web part zone on the page, so let's start adding web parts to it. First, we need a heading. Click the Add web part (
Click OK.
6. Switch to the Page tab and enter Forums into the Editable text web part's text box. Click Save.
7. Switch back to the Design tab. Because some forums might be accessible only to authenticated users, we will add the Logon miniform web part below the heading. It will be displayed only to unauthenticated anonymous site visitors. Click the Add web part (
Click OK.
8. Below the logon mini form, the Forum search box web part will reside. It will enable users to search in the forum contents. Click the Add web part (
Click OK.
9. Below the Forum search box, we will place the Forum group web part. In order for it to display any content, you should have created some sample forum group as mentioned in the beginning of this chapter. Click the Add web part (
Click OK.
10. Below the Forum group, we will place the Forum search results. The web part will be displaying results of forum search performed by the Forum search box web part above. Click the Add web part (
11. The last web part on the page is the On-line users web part. We will set it up so that it displays the number of users who are currently browsing the forums section. Click the Add web part (
Click OK.
12. The page is now finished. In Design tab, it should look as in the following screenshot.
13. Finally, we will save the page as a new page template so that it can be reused in the future (we will use it when creating the Forum search page). Switch to the Properties -> Template tab and click the Save as new template link. In the pop-up dialog, enter the following details:
Click OK. Click Save.
|