For each website page, you need to have an angular template. In other words, if you create a page in CMS Cockpit or SmartEdit, you will need to ask developers to add this page in the Angular code too.

SAP Spartacus Angular Component和CMS Component的映射关系

The system is not capable yet to pull new pages from the WCMS automatically.

搜索关键字:cmscomponentmapping

SAP Spartacus Angular Component和CMS Component的映射关系
SAP Spartacus Angular Component和CMS Component的映射关系

CmsComponentMapping的字段component,存放的是Angular Component的class.

在cms-components.service.ts里打印出CMS Component对应的Angular Component class:

SAP Spartacus Angular Component和CMS Component的映射关系
SAP Spartacus Angular Component和CMS Component的映射关系

比如SimpleResponsiveBannerComponent对应的Angular Component是BannerComponent,位于storefront/src/cms-components文件夹下:

SAP Spartacus Angular Component和CMS Component的映射关系
SAP Spartacus Angular Component和CMS Component的映射关系

要获取更多Jerry的原创文章,请关注公众号"汪子熙":
SAP Spartacus Angular Component和CMS Component的映射关系

相关文章: