为SharePoint 2010中的库中的所有页面继承MasterPage [英] Inheriting the MasterPage for all Pages in a Library in SharePoint 2010

查看:81
本文介绍了为SharePoint 2010中的库中的所有页面继承MasterPage的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


继承SharePoint 2010中库中所有页面的MasterPage 

我记得这是一小段执行此操作的JavaScript代码。


Mike W




SharePoint工程师 - Mike

解决方案


我检查了JavaScript api,没有api在SharePoint中设置母版页2010年。


<跨度> https://docs.microsoft.com/en-us/previous-versions/office/developer/sharepoint-2010/ff410960%28v%3doffice.14%29


SharePoint 2013中的SP.Web.get_masterUrl。


<跨度> https://docs.microsoft.com/en-us/previous-versions/office/sharepoint-visio/jj245057(v%的3doffice.15)


如果您的页面使用默认母版页,则只需在SharePoint 2010中设置默认母版页。


<跨度> https://www.c-sharpcorner.com/blogs/how-to-create-and-change-the-sharepoint-2010-master-page-through-sharepoint-designer


对于自定义发布页面布局,请查看以下主题。


<跨度> HTTPS: //blog.pixelmill.com/821/sharepoint-2010-assign-a-unique-masterpage-to-a-page-layout-in-a-publishing-portal /


最好的问候,





Inheriting the MasterPage for all Pages in a Library in SharePoint 2010

I recall it was a small snippet of JavaScript Code that does this.

Mike W


SharePoint Engineer - Mike

解决方案

Hi, 

I checked the JavaScript api, there is no api to set master page in SharePoint 2010.

https://docs.microsoft.com/en-us/previous-versions/office/developer/sharepoint-2010/ff410960%28v%3doffice.14%29

SP.Web.get_masterUrl in SharePoint 2013.

https://docs.microsoft.com/en-us/previous-versions/office/sharepoint-visio/jj245057(v%3doffice.15)

If your page use default master page, just set default master page in SharePoint 2010.

https://www.c-sharpcorner.com/blogs/how-to-create-and-change-the-sharepoint-2010-master-page-through-sharepoint-designer

For customized publishing page layout, check below thread.

https://blog.pixelmill.com/821/sharepoint-2010-assign-a-unique-masterpage-to-a-page-layout-in-a-publishing-portal/

Best Regards,

Lee


这篇关于为SharePoint 2010中的库中的所有页面继承MasterPage的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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