如何在sp2013中以编程方式将摘要链接Web部件添加到自定义页面布局? [英] How to add summary link web part to custom Page Layout Pro-grammatically in sp2013 ?
问题描述
我在Visual Studio中有自定义页面布局。如果我使用此自定义布局创建新页面,我必须添加要添加的摘要链接webpart到页面。第一次它将在页面中隐藏。将链接添加到webpart后,我只需要在页面中看到
。
我的布局页面中有以下的webpart区域。
< div class =" col-xs-12">
&NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; < WebPartPages:WebPartZone runat =" server" Title =" Top Zone" ID = QUOT; TopZone"边框= QUOT;无" PartChromeType =" None">< ZoneTemplate>< / ZoneTemplate>< / WebPartPages:WebPartZone>
&NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; < / DIV>&NBSP;
< WebPartPages:WebPartZone runat =" server" Title =" Business Content Zone" ID = QUOT; BusinessContentZone"边框= QUOT;无" PartChromeType =" None">< ZoneTemplate>< / ZoneTemplate>< / WebPartPages:WebPartZone>
我必须展示SummaryLink webpart到新创建的page.how将其添加到上面的模板中。> pls help
您好
以下是您的参考资料,希望能提供帮助。
Hi,
I have a custom page layout in Visual studio.If i create a new page using this custom layout, i have to add Summary Links webpart to be added to the page. First time it will be in Hidden in the page. Once add the links to webpart then only i have to see it in the page.
I have the below webpart zones available in my layout page.
<div class="col-xs-12"><WebPartPages:WebPartZone runat="server" Title="Top Zone" ID="TopZone" BorderStyle="None" PartChromeType="None"><ZoneTemplate></ZoneTemplate></WebPartPages:WebPartZone>
</div>
<WebPartPages:WebPartZone runat="server" Title="Business Content Zone" ID="BusinessContentZone" BorderStyle="None" PartChromeType="None"><ZoneTemplate></ZoneTemplate></WebPartPages:WebPartZone>
I have to show SummaryLink webpart to the newly created page.how to add it in the above template.>pls help
Hi
Here is a reference for you and hope it can help.
这篇关于如何在sp2013中以编程方式将摘要链接Web部件添加到自定义页面布局?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!