如何在 SAP Spartacus 裏添加自定義頁面 - Custom Page

網友提問

Add a custom page to Spartacusgit

I would like to add a custom sub page (http://localhost:4200/image-upload) to spartacus. The Header and Footer should be the same. Just the content should be an upload form.github

三個步驟
  1. Add a new content page in CMS with page label /image-upload (with the leading slash).

Spartacus routing should handle it OOTB. https://sap.github.io/cloud-commerce-spartacus-storefront-docs/adding-and-customizing-routes/app

默認頁面的標誌位:ide

  1. Add a layout config only if your page has custom layout https://sap.github.io/cloud-commerce-spartacus-storefront-docs/page-layout/#configuring-the-layout

能夠用SAP Spartacus 默認的layout配置,或者自定義。this

3.Implement Angular CMS components that should appear on this page and configure mapping from CMS component type to the implementation https://sap.github.io/cloud-commerce-spartacus-storefront-docs/customizing-cms-components/#page-titlespa

相關文章
相關標籤/搜索