Creating the Access denied page |
The first special page will be the Access denied page. This is where users with insufficient permissions will be redirected after accessing some secured page. The page will contain only an Editable text web part which will display the access denied message.
1. Select the Special pages folder in the content tree and click New. Choose the Page (menu item) document type.
2. Select the My Community Site templates -> _StarterTemplate created in this chapter. Into the Page name field, enter Access denied and click Save.
3. Switch to the Properties -> Template tab and click the Save as new template link. Enter the following details in the pop-up dialog:
Click OK. Click Save.
4. Switch to the Design mode. We will only need to add the Editable text web part into the zoneCenter web part zone, below the Editable text web part for heading. Click the Add web part () icon of the zoneCenter web part zone and choose the Text -> Editable text web part. Set the following properties of the web part. You do not need to set any properties of the web part, just leave all of them at the default values.
In Design mode, the page should now look as in the following screenshot.
5. Switch to the Page mode. You can see two editable text regions on the page now - one for heading and one for the warning text. Enter the following texts into the text areas:
Click Save.
The page is complete. If you view it in Live site mode, you should see the page as in the following screenshot. Please note that the Logon mini form is displayed only to unauthenticated users.
|