为SharePoint 2010中的库中的所有页面继承MasterPage [英] Inheriting the MasterPage for all Pages in a Library in SharePoint 2010
问题描述
继承SharePoint 2010中库中所有页面的MasterPage
我记得这是一小段执行此操作的JavaScript代码。
Mike W
SharePoint工程师 - Mike
我检查了JavaScript api,没有api在SharePoint中设置母版页2010年。
SharePoint 2013中的SP.Web.get_masterUrl。
如果您的页面使用默认母版页,则只需在SharePoint 2010中设置默认母版页。
对于自定义发布页面布局,请查看以下主题。
最好的问候,
利跨度>
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.
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.
For customized publishing page layout, check below thread.
Best Regards,
Lee
这篇关于为SharePoint 2010中的库中的所有页面继承MasterPage的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!