通过功能在现有网站集中创建列表

发布于 2024-08-15 07:56:28 字数 311 浏览 1 评论 0原文

我在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

甜味拾荒者 2024-08-22 07:56:28

不幸的是,您在这里唯一的选择是在功能事件接收器中的功能的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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文