【问题标题】:What is the difference between the "Path" and "SetupPath" attibutes on the Module elementModule元素上的“Path”和“Set Path”属性有什么区别
【发布时间】:2010-10-25 09:36:10
【问题描述】:

所以我有一个将页面布局部署到发布网站的 SharePoint 功能定义。定义如下所示:

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <Module Name="Page Layouts" Url="_catalogs/masterpage" RootWebOnly="True">
    <File Path="Page Layouts\layout1.aspx" Url="layout1.aspx" Type="GhostableInLibrary" IgnoreIfAlreadyExists="True">
      <Property Name="Title" Value="Layout 1" />
      <Property Name="ContentType" Value="$Resources:cmscore,contenttype_pagelayout_name;" />
    </File>
  </Module>
</Elements>

Module 元素也可以接受属性“Path”和“SetupPath”。我的理解是,如果省略这两个属性,则 SharePoint 会在与此功能相同的文件夹中查找 layout1.aspx,如果指定了 Path,则 SharePoint 在相对于此功能的文件夹的路径中查找文件,如果指定了 SetupPath,则 SharePoint查找与 14 Hive 相关的文件。

那么这个基本的理解正确吗?一旦该功能被激活并在网站上运行,如果我指定了 Path 或 SetupPath,此布局页面的存储或处理是否会有所不同?布局文件的加载时间会受到任何影响吗?

谢谢, 格雷格

【问题讨论】:

    标签: sharepoint sharepoint-2010


    【解决方案1】:

    扩展 ashish 提到的内容。

    Path = 相对于 WSS 12 hive Features\Feature 文件夹的路径

    SetupPath = 与 WSS 12 配置单元模板文件夹相关的路径。

    【讨论】:

      【解决方案2】:

      请查看 SharePoint SDK 中的以下文档:http://msdn.microsoft.com/en-us/library/ms434127.aspx

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2020-09-19
        • 2018-01-02
        • 2018-11-07
        • 2013-12-25
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多