如何在sp2013中以编程方式将摘要链接Web部件添加到自定义页面布局? [英] How to add summary link web part to custom Page Layout Pro-grammatically in sp2013 ?

查看:77
本文介绍了如何在sp2013中以编程方式将摘要链接Web部件添加到自定义页面布局?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我在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

解决方案

您好


以下是您的参考资料,希望能提供帮助。


https://stackoverflow.com/questions/31229284/how-to-embed-sharepoint-2013-webparts-直接合ASPX布局页-AS - 缺省 - 我们


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.

https://stackoverflow.com/questions/31229284/how-to-embed-sharepoint-2013-webparts-directly-in-aspx-layout-page-as-default-we


这篇关于如何在sp2013中以编程方式将摘要链接Web部件添加到自定义页面布局?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆