在SharePoint2013片段中设置WebPartZone标题
-
29-09-2020 - |
题
有谁知道正确的方法给一个web部件区域(在SP2013HTML页面布局内)一个很好的人类可读标题?
我使用了以下片段:
<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"%>-->
<div xmlns:ie="ie">
<!--MS:<WebPartPages:WebPartZone runat="server" DisplayTitle="Sidebar" AllowPersonalization="false" ID="x9f20386d0c5648cc8fca09e815f2a754" FrameType="TitleBarOnly" Orientation="Vertical">-->
<!--MS:<ZoneTemplate>-->
<!--DC: Replace this comment with default web parts for new pages. -->
<!--ME:</ZoneTemplate>-->
<!--ME:</WebPartPages:WebPartZone>-->
</div>
<!--CE: End Web Part Zone Snippet-->
</div>
如您所见,我尝试使用属性设置标题 DisplayTitle
到"侧边栏",但它不起作用。它只是像这样呈现页面上的标题:区1,区2,...
这不是正确的财产吗?
解决方案
您应该可以只使用"标题",如下所示。
<!--MS:<WebPartPages:WebPartZone runat="server" Title="Sidebar" AllowPersonalization="false" ID="x9f20386d0c5648cc8fca09e815f2a754" FrameType="TitleBarOnly" Orientation="Vertical">-->