通过功能在现有网站集中创建列表
我在 Visual Studio 到 MOSS 中创建了一个功能,一个发布网站 - 此功能包含一个母版页、一些页面模板、一些网站栏(分组以匹配每个页面模板)和一些自定义列表模板等。我还创建了网站集、一些基于我的功能的网站和页面。
现在我已经升级了我的功能中的代码 - 我希望根据我的自定义列表模板创建一个 ListInstance。当我升级 SharePoint(使用 WSPBuilder)时,如果我创建新网站集,则 ListInstance 和默认数据可见,但现有网站集不会获取 ListInstance 和数据。升级时我可以做些什么来更新现有网站集以包含 ListInstance 吗?
I have created a feature, a publishing site, in Visual Studio to MOSS - this feature contains a masterpage, some page-templates, some site columns (grouped to match each page-template) and som custom list templates etc. I have also created a site collection, some sites and pages based on my feature.
Now I have upgraded the code in my feature - I wanted a ListInstance to be created based on my custom list template. When I have upgraded my SharePoint (using WSPBuilder), the ListInstance and default data are visible if I create a new site collection, but existing site collection does not get the ListInstance and data. Is there anything I can do to update existing site collections to contain the ListInstance when upgrading?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不幸的是,您在这里唯一的选择是在功能事件接收器中的功能的FeatureActivated 方法中以编程方式在所有现有站点中创建列表。这是 sharepoint 部署模型中的一个巨大漏洞,也是一个令人痛苦的漏洞。
-奥辛
Unfortunately your only choice here is to programmatically create the list in all existing sites in the feature's FeatureActivated method in a feature event receiver. This is a gaping hole in sharepoint's deployment model, and a painful one at that.
-Oisin