我们有一组自定义站点定义,总共大约12个,这组成了一个大型SharePoint 2010 Intranet应用程序(大约40,000个子站点),现在已经部署了几年。

这些网站定义现在需要一些调整。即,使用一些预先配置的Web部件添加到它的新页面,并将新的Web部件插入着陆页。

我可以理解我可以为此更新创建一个新功能,并将其与所讨论的网站定义相关联,这对于从本网站定义提供的新站点都是很好的,但我如何开始应用相同的更改现有的40,000个站点,也需要更新?

感谢您的任何帮助, 托尼

有帮助吗?

解决方案

You could loop through all the existing sub-sites with a PowerShell script, and use the feature cmdlets to activate the feature on existing sites. Using this method you could also insert some logic/conditions to enable or not enable the new feature if that is useful.

其他提示

You need to develop what I call a "service pack" to deploy against the existing sites. In this case your service pack would contain a module with the site pages and any other resources that might be required.

If your solution is only adding new artifacts to the site, the process is pretty straightforward. If you are changing things like list structures, it's still doable but you might have to write some code to make that happen. For example, if you need to update the quick launch you'll have to write code in a Feature Receiver to add the new entries.

许可以下: CC-BY-SA归因
scroll top