SharePoint 2013 アプリでリストを作成しました。Schema.xml には、AllItems ビューに関連する次のノードが含まれています。
<View BaseViewID="1"
Type="HTML"
WebPartZoneID="Main"
DisplayName="$Resources:core,objectiv_schema_mwsidcamlidC24;"
DefaultView="TRUE"
OrderedView="TRUE"
MobileView="TRUE"
MobileDefaultView="TRUE"
SetupPath="pages\viewpage.aspx"
ImageUrl="/_layouts/15/images/generic.png?rev=23"
Url="AllItems.aspx">
SetupPath="pages\viewpage.aspx
クライアントの要件に合わせてブランド化できるように、自分のページに置き換えたいと考えています。を作成しましたPages\CustomViewPage.aspx
が、カスタム ページを参照する方法がわかりません。
次の属性を試しました。に置き換えましSetupPath
た。View Element (List)Path
を参照してください。
<View BaseViewID="1"
Type="HTML"
WebPartZoneID="Main"
DisplayName="$Resources:core,objectiv_schema_mwsidcamlidC24;"
DefaultView="TRUE"
OrderedView="TRUE"
MobileView="TRUE"
MobileDefaultView="TRUE"
Path="~site/pages/customviewpage.aspx"
ImageUrl="/_layouts/15/images/generic.png?rev=23"
Url="AllItems.aspx">
Path="~site/pages/customviewpage.aspx"
またはを使用するPath="../pages/customviewpage.aspx"
と、アプリケーションをデプロイできず、エラーはあまり役に立ちません (SharePoint Online):
@"Error 1
CorrelationId: aedf6556-ac09-4b0e-9367-905c81563a57
ErrorDetail: There was a problem with activating the app web definition.
ErrorType: App
ErrorTypeName: App Related
ExceptionMessage: <nativehr>0x80131600</nativehr><nativestack></nativestack>
Source: AppWeb
SourceName: App Web Deployment
Error occurred in deployment step 'Install app for SharePoint':
Failed to install app for SharePoint. Please see the output window for details.
独自のカスタム ListView ページを参照する方法を知っている場合は、私に連絡してください。ありがとうございました。