【问题标题】:Feature activate via UI but does not show in the Libraries and Lists功能通过 UI 激活,但未显示在库和列表中
【发布时间】:2011-01-27 11:01:40
【问题描述】:
  1. 我真的很讨厌 SharePoint,因为几乎没有任何好的/具体的文档。
  2. 我开发了带有少量列(不是网站列)的自定义列表“MainCatalog”。
  3. 在网站集级别使用 MOSS 功能构建器创建功能和元素,以便 scope="site"
  4. 通过 stsadm 安装
  5. 通过 UI“进入网站集网站”、网站设置 > 网站集功能(并看到我的自定义列表“MainCatalog”)激活并能够激活。
  6. 然后转到“mySiteCollection > 站点设置 > 站点库和列表”
  7. 我的列表正在显示
  8. 但它显示在“mySiteCollection > Create > Custom Lists > “MainCatalog”
  9. 我猜它在那里显示为模板...

但我的意图是将此列表从开发环境部署到测试环境。极度紧张。我在过去 8 天都在这......

【问题讨论】:

    标签: sharepoint sharepoint-list


    【解决方案1】:

    如您所说,您已经成功地创建、部署和激活了为列表提供 模板 的功能。然后,您可以使用模板手动创建列表的实例,也可以让功能在激活时自动配置实例。为此,请将以下内容添加到您的 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>
    

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

    【讨论】:

      猜你喜欢
      • 2012-07-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-01-12
      • 1970-01-01
      • 2011-02-03
      • 1970-01-01
      相关资源
      最近更新 更多