【问题标题】:Sharepoint Application 2013 custom list new pageSharepoint Application 2013 自定义列表新页面
【发布时间】:2016-08-05 00:32:49
【问题描述】:

我有一个共享点托管的应用程序和这个应用程序中的一些列表。我想用我自己的页面替换默认的新表单。我已经为列表修改了 schema.xml:

    <Forms>
      <Form Type="DisplayForm" Url="DispForm.aspx" SetupPath="pages\form.aspx" WebPartZoneID="Main" />
      <Form Type="EditForm" Url="EditForm.aspx" SetupPath="pages\form.aspx" WebPartZoneID="Main" />
      <Form Type="NewForm" Url="NewForm.aspx" SetupPath="features\$SharePoint.Feature.DeploymentPath$\Pages\Default.aspx" WebPartZoneID="Main" />
    </Forms>

但是在部署过程中出现“找不到指定的文件”的错误。如何在 sharepoint 托管的应用程序列表 schema.xml 中指向我的页面?

【问题讨论】:

    标签: sharepoint sharepoint-2013


    【解决方案1】:

    如果您的表单与列表位于同一文件夹中:

        <Form Type="NewForm" Url="NewForm.aspx" Path="CustomNewForm.aspx" WebPartZoneID="Main" UseLegacyForm="FALSE" />
    

    或者如果您在 Pages 文件夹中有自定义表单:

        <Form Type="NewForm" Url="NewForm.aspx" Path="~site/Pages/CustomNewForm.aspx" WebPartZoneID="Main" UseLegacyForm="FALSE" />
    


    重要提示:
    不要忘记右键单击自定义表单并选择属性
    然后设置部署类型:ElementFile

    【讨论】:

      【解决方案2】:

      据我所知,我认为您应该将每个设置路径中的反斜杠更改为正斜杠,因为它们指的是 IIS 上的 SharePoint 应用程序中的特定位置。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2017-10-29
        • 1970-01-01
        • 1970-01-01
        • 2014-09-20
        • 2014-12-10
        • 2013-09-28
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多