2013-08-28 78 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應用程序中的特定位置。

相關問題