我为我的发布网站创建了一个页面布局。在此页面布局上,我想添加评论和评级选项。
评级选项在页面上显示得很好,但评论控件似乎没有......
经过一些研究后,我将评论控件放在了一个webpartzone中,但这并没有影响结果。
有谁知道我做错了什么?
这是我添加评论部分的代码:
<div data-name="WebPartZone">
<!--CS: Start Web Part Zone Snippet-->
<!--SPM:<%@Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%>-->
<!--MS:<WebPartPages:WebPartZone runat="server" ID="x0e5f5212505f48a9aac43df13eeae4f9" AllowCustomization="True" AllowPersonalization="False" FrameType="TitleBarOnly" LockLayout="True" Orientation="Vertical">-->
<!--MS:<ZoneTemplate>-->
<!--SPM:<%@ Register TagPrefix="SharePointPortalControls" Namespace="Microsoft.SharePoint.Portal.WebControls" Assembly="Microsoft.SharePoint.Portal, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>-->
<p>Comment:</p><!--MS:<SharePointPortalControls:SocialCommentControl ID="CommentControl" runat="server"/>-->
<!--ME:</ZoneTemplate>-->
<!--ME:</WebPartPages:WebPartZone>-->
<!--CE: End Web Part Zone Snippet-->
</div>
BTW,我正在使用sharepoint 2013在html文件中工作。
日Thnx
答案 0 :(得分:0)
您是否在Central Admin中检查过您的用户个人资料服务应用?我甚至无法通过中央管理员进入它;在日志中我得到“这个用户配置文件应用程序的连接目前不可用”所以我删除了服务应用程序,重新创建,iisreset和presto!我的所有评论控件都神奇地出现了。