Adding a noteboard to a page layout

Adding a noteboard to a page layout header image

Adding the new note board to your page layouts seems like a nice way to allow comments on news items and provide a some more social element within your site, however in terms of configuration, you don't want to have to add the note board to each page you created, and add it to a page layout. So I created some page layouts and  wanted to add the note board WebPart to it using its xml, therefore I exported the Note Board WebPart, however when putting it back on the page it gave me an error, so once exported it can not be imported again.

If you want to add the WebPart to your page layout you can use the following xml to do so (it is taken from the MySiteHost Site Defintion, and works as a charm):

<WebPart xmlns="http://schemas.microsoft.com/WebPart/v2">
  <Assembly>Microsoft.SharePoint.Portal, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c</Assembly>
  <TypeName>Microsoft.SharePoint.Portal.WebControls.SocialCommentWebPart</TypeName>
  <Title>Noteboard</Title>
  <Description>Description</Description>
  <PartOrder>3</PartOrder>
  <FrameType>TitleBarOnly</FrameType>
  <AllowMinimize>true</AllowMinimize>
  <AllowRemove>false</AllowRemove>
  <IsVisible>true</IsVisible>
</WebPart>
Loading comments…