如何在 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

相关文章
相关标签/搜索