首页  编辑  

SharePoint给wiki页面添加like和评论comment功能

Tags: /计算机文档/软件应用技巧/   Date Created:
Can you create a "Comments" section in a SharePoint wiki? - Stack Overflow
I need to customize the enterprise wiki so that each article can have comments against it.

The Enterprise wiki is basically a publishing layout page .Can I add the blog web parts to the enterprise wiki page layout page. But can I save the site as a site template and upload the solution.
Is there a better way to do it.

sharepoint designer - enterprise wiki customization office 365 - SharePoint Stack Exchange
You can edit EnterpriseWiki page layout and add a Note Board web part.
<SharePointPortalControls:SocialCommentWebPart id="noteboard" ChromeType="None" runat="server" />
This should be placed after
<PublishingWebControls:RichHtmlField id="PageContent" FieldName="PublishingPageContent" MinimumEditHeight="400px" DisableInputFieldLabel="true" runat="server"/>
You can save the site as template and use it.


John Jay's SharePoint Blog: Add Comment Box in SharePoint Enterprise Wiki Pages (johnjayaseelan.blogspot.com)

Today I had a new requirement to add a Comment box for all the Wiki pages. It will be used to give feedback or comments for that Wiki page content.
In SharePoint we have a very powerful webpart for that its nothing but Note Board webpart.
I thought of adding it to the Page Layout and when ever a new page is created it will be created with the new comment box.
So below code has to added to added in the page layouts to include the Note Board webpart to the wiki pages.
<SharePointPortalControls:SocialCommentWebPart id="noteboard" ChromeType="None" runat="server" />
How To Add:
Edit the page layout in sharepoint designer and add it next to the <PublishingWebControls:RichHtmlField Tag.
After adding the the note board webpart save the page layout after saving it the Note Board Webpart will take a __Webpartid automatically.

Happy SharePointing... :)

上述方法,可能在SharePoint Online(Office 365,即 xxx.sharepoint.com)里面不起作用,如果这样,可以考虑利用母版页,集成 remark42 等功能实现类似效果:
修改 seattle.master(或者自己定义一个) 页面,然后,在 <SharePoint:AjaxDelta id="DeltaPlaceHolderMain" BlockElement="true" IsMainContent="true" runat="server"> 内添加代码如下:
<SharePoint:AjaxDelta id="DeltaPlaceHolderMain" BlockElement="true" IsMainContent="true" runat="server">
	<asp:ContentPlaceHolder id="PlaceHolderMain" runat="server" />
		<div id="remark42"></div>
		<script>
		  var remark_config = { host: 'https://xxx.your_remark42_server.com', site_id: 'your_remark42_id', no_footer: true };
		  !function(e,n){for(var o=0;o<e.length;o++){var r=n.createElement("script"),c=".js",d=n.head||n.body;"noModule"in r?(r.type="module",c=".mjs"):r.async=!0,r.defer=!0,r.src=remark_config.host+"/web/"+e[o]+c,d.appendChild(r)}}(remark_config.components||["embed"],document);
		</script>
</SharePoint:AjaxDelta>
页面效果: