2013-08-28 81 views
1

我有一个sharepoint托管的应用程序和这个应用程序中的一些列表。我想用我自己的页面替换默认的新窗体。我修改了以下列表的schema.xml:Sharepoint应用程序2013年自定义列表新页面

<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中的页面?

回答

0

如果你有相同的文件夹列表中的形式:

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

,或者如果你有一个网页的文件夹中的自定义表单:

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


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

0

从我所看到的情况来看,我认为您应该在每个设置路径中将反斜杠更改为正斜杠,因为它们引用IIS上SharePoint应用程序中的特定位置。

相关问题