如何在“站点定义”中禁用某些SharePoint应用程序 [英] How to disable some SharePoint apps in Site Definition
问题描述
您好b $ b
我正在开发一个自定义SharePoint 2013网站定义,其中包括一些自定义主页,自定义页面布局,一些内容类型,一组WebParts ......在此模板中我被要求激活一些功能,停用一些使用Onet.xml成功完成的未使用的设置,但问题是,我被要求禁用一些未使用的应用程序,如(表单库,访问应用程序,外部列表,资产库),不幸的是,我陷入困境,我试图在主要功能事件接收器中使用( web.Features.Remove ),但是当我尝试使用此功能创建网站集时,它会生成大量错误消息网站定义。
任何帮助将不胜感激
谢谢
Hi
I'm developing a custom SharePoint 2013 Site Definition that will include some custom masterpages, custom page layouts, some content types, a set of WebParts … in this this template I was asked to activate some features, deactivate some unused settings which has been done successfully using Onet.xml but the problem, I was asked to disable some unused apps like (Form Library, Access App , External List, Asset Library) and unfortunately, I’m getting stuck, I tried to do it in the main feature event receiver using (web.Features.Remove), but it’s generating a lot of error message when I try to create site collection using this site definition.
Any help will be appreciated
Thanks
推荐答案
您在该网站定义的ONET.XML中没有选项。
Dont you have option in ONET.XML of that Site definition.
这篇关于如何在“站点定义”中禁用某些SharePoint应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!