子站点上的 Sharepoint Foundation 母版页 [英] Sharepoint Foundation master pages on subsites

查看:46
本文介绍了子站点上的 Sharepoint Foundation 母版页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用 Sharepoint Foundation 2010 我编辑了 v4.master,添加了对新 CSS 文件的引用,保存更改并将它们应用于主站点没问题.

Using Sharepoint Foundation 2010 I've edited v4.master, added a ref to a new CSS file, saved the changes and they are applied to the home site no problem.

然而,当我创建一个子站点时,它出于某些恼人的原因使用了旧版本的 v4.master.我隐约知道 SPS 的某些发布功能未包含在 SPF 中,因此很多在线建议都无关紧要 (?)

However when I create a subsite it uses the old version of v4.master for some irritating reason. I'm vaguely aware that some of the publishing features from SPS are not included in SPF so lots of the online advice isn't relevent (?)

如果有办法让新的子站点继承新的V4.master,我将不胜感激.

If there is a way to make new subsites inherit the new V4.master I'd be very grateful.

推荐答案

这仅适用于自定义 WSP 或 HttpModule,两者都需要 .NET 代码.SharePoint 的服务器版本使用 Masterpage 选项轻松处理此问题,在 Google 上快速搜索基础母版页解决方案"即可获得良好的结果,包括:

This is only possible with a custom WSP or an HttpModule, both requiring .NET code. The Server versions of SharePoint handle this easily with the Masterpage option, a quick google search for "foundation masterpage solution" gave good results, including:

http://blog.thedesigndrifter.com/?p=1112

http://rickhilferink.wordpress.com/2011/01/25/creating-a-sharepoint-2010-foundation-masterpage-solution-and-automatically-activate-it-for-all-sites-and-newly-created-subsites/

这篇关于子站点上的 Sharepoint Foundation 母版页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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