功能通过 UI 激活,但不会显示在库和列表中

发布于 2024-08-25 02:18:36 字数 472 浏览 2 评论 0原文

  1. 我真的很讨厌 SharePoint,因为几乎没有任何好的/具体的文档。
  2. 我开发了自定义列表“MainCatalog”,其中包含很少的列(不是网站列)。
  3. range="site"
  4. 在网站集级别使用 MOSS 功能生成器创建功能和元素,因此通过 stsadm 安装的
  5. 通过 UI“转到网站集网站”激活,网站设置 >网站集功能(并看到我的自定义列表“MainCatalog”)并能够激活。
  6. 然后转到“mySiteCollection > 站点设置 > 站点库和列表”
  7. 我的列表正在显示
  8. ,但它显示在“mySiteCollection > 创建 > 自定义列表 > “MainCatalog”中,
  9. 我猜它显示为模板...

但我的目的是将这个列表从开发环境部署到测试环境,这让我在过去 8 天里感到非常紧张......

  1. I am really hating SharePoint as there are hardly any good/concrete documentation.
  2. I developed custom List "MainCatalog" with few columns (not site columns).
  3. Create features and elements with MOSS feature builder at Site collection level so scope="site"
  4. installed via stsadm
  5. activated via UI "went to site collection website", Site Setting > Site collection Feature (and saw my custom list "MainCatalog") and was able to activate.
  6. then went to "mySiteCollection > Site Settings > Site Libraries and Lists "
  7. My list is showing
  8. But it shows in the "mySiteCollection > Create > Custom Lists > "MainCatalog"
  9. I guess it's showing there as a template...

But my intention is to deploy this list from development to test environment. EXTREMELY STRESSED. I AM ON THIS FOR LAST 8 DAYS.....

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

还如梦归 2024-09-01 02:18:36

因此,您已经成功创建、部署并激活了为列表提供模板的功能,正如您所说。然后,您可以使用模板手动创建列表的实例,也可以让该功能在激活时自动配置实例。为此,请将以下内容添加到您的 Elements.xml(或您命名的任何名称)中:

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<ListTemplate Name="MainCatalog" Type="12345" BaseType="0" SecurityBits="11" DisplayName="Main Catalog" Description="Create a Main Catalog list instance" Image="/_layouts/images/itgen.gif" RootWebOnly="FALSE" OnQuickLaunch="TRUE"/>
<ListInstance Id="MainCatalog" TemplateType="12345" Title="Main Catalog" Url="Lists/MainCatalog" Description="Main Catalog list"></ListInstance>

然后将此功能部署到您的测试环境。

So you've successfully created, deployed and activated the Feature which provides the template for the list, as you say. You can then create an instance of the list manually, using the template, or you can have the Feature automatically provision an instance when activated. To do so, add the following to your Elements.xml (or whatever you have named it):

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<ListTemplate Name="MainCatalog" Type="12345" BaseType="0" SecurityBits="11" DisplayName="Main Catalog" Description="Create a Main Catalog list instance" Image="/_layouts/images/itgen.gif" RootWebOnly="FALSE" OnQuickLaunch="TRUE"/>
<ListInstance Id="MainCatalog" TemplateType="12345" Title="Main Catalog" Url="Lists/MainCatalog" Description="Main Catalog list"></ListInstance>

Then deploy this Feature to your test environment.

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