Showing posts with label social features. Show all posts
Showing posts with label social features. Show all posts

Wednesday, August 26, 2015

How to add the note board web part to your page layout

The situation: I'm creating a site with internal news articles, and the customer would like for people to leave comments on each one.

The problem: I tried going into SharePoint Designer and adding the web part through the interface, but then got the "sorry, I don't understand that tag" message.

The solution: It's always a matter of figuring out the proper include for the top of the page, isn't it?  Here's what I did:
  1. Add the note board web part code into the page layout:
    <SharePointPortalControls:SocialCommentWebPart id="noteboard" ChromeType="None" runat="server" />
  2. Add the SharePointPortalControls include to the header of my page layout:
    <%@ Register TagPrefix="SharePointPortalControls" Namespace="Microsoft.SharePoint.Portal.WebControls" Assembly="Microsoft.SharePoint.Portal, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%>