Creating the Forum unsubscribe page

  Previous topic Next topic JavaScript is required for the print function Mail us feedback on this topic! Mail us feedback on this topic!  

The last of the unsubscription pages is the Forum unsubscribe page. In the Forums section, users have the possibility to subscribe to receiving notification e-mails about new posts in a particular forum thread. The notification e-mails contain unsubscription links leading to this page. The GUID of the subscription is contained in the querystring parameter. The main part of this page is the Forum unsubscription web part. When a user clicks the unsubscription link, they are redirected to this page where the web part handles the unsubscription request.

 

In order to for the page to be functional, you need to set its URL in Site Manager -> Settings -> Forums -> Forum unsubscription URL, as described in this chapter.

 

1. Select the Special pages folder in the content tree and click New. Choose the Page (menu item) document type.

 

commguide_clip0384

 

2. Select the My Community Site templates -> _StarterTemplate created in this chapter. Into the Page name field, enter Forum unsubscribe and click Save.

 

commguide_clip0385

 

3. Switch to the Properties -> Template tab and click the Save as new template link. Enter the following details in the pop-up dialog:

 

Template display name: My Community Site - Forum unsubscribe
Template code name: MyCommunitySite.ForumUnsubscribe
Template category: My Community Site templates
Template description: some text describing the page template

 

Click OK. Click Save.

 

commguide_clip0386

 

4. Switch to the Page tab and enter Forum unsubscribe into the Editable text web part's text box. Click Save.

 

commguide_clip0387

 

5. Switch to the Design tab. Click the Add web part (AddWebPart) icon of the zoneCenter web part zone and choose the Forums -> Forum unsubscription web part. Set the following properties of the web part, leave the default values for the rest of them:

 

Content before: <h3>
Content after: </h3><br /><br />

 

Click OK. The page is now finished and ready to handle the unsubscription requests.

 

commguide_clip0388

Page url: http://devnet.kentico.com/docs/communitysiteguide/index.html?creating_the_forum_unsubscribe_page.htm