SAP Spartacus的页面类型和路由配置
2023-09-14 09:02:54 时间
The CMS in SAP Commerce Cloud comes with the concept of three special page types: Product Page, Category Page, Catalog Page (Catalog is not supported for now) and one common type Content Page used for all other pages, i.e. login, order history or faq.
Catalog page目前暂时不支持。
Content page:起万金油作用,用于渲染登录页面,订单历史和FAQ等等。
Spartacus针对这三种页面的route配置:
- route with :productCode param - for Product Pages
- route with :categoryCode param and route with :brandCode param - for Category Pages
- wildcard ** route - for all other, Content Pages
product page的url可以在Spartacus里定制:
routing: {
routes: {
product: {
paths: ['jerryproduct/:productCode/:name', 'jerryproduct/:productCode'],
},
},
},
Content Pages have a configurable URL in the CMS, called page label.
路由配置方式:
All routes in Spartacus can be configured by importing ConfigModule.withConfig() with an object containing routing property:
ConfigModule.withConfig({
routing: { /* ... */ },
/* ... */
})
Spartacus默认路由配置,位于default-routing-config.ts里:
更多Jerry的原创文章,尽在:“汪子熙”:
相关文章
- SAP UI5 应用中的 sap.ui.require 使用场景
- SAP Gateway 在开发系统和生产系统上的缓存控制
- 我与 SAP 成都研究院吴院长的二三事
- SAP UI5 应用 manifest.json 文件里 Routes 数组元素的相对顺序,不可忽视的试读版
- SAP MM内向交货单的凭证流
- SAP UI5 sap.m.Table 实现响应式布局的两种配置模式
- SAP UI5 响应式表格 sap.m.Table 根据不同宽度的屏幕动态决定显示或隐藏 Column 的实现源代码讲解试读版
- 如何在 SAP BTP 上创建 Module 之间具有依赖关系的 SAP MTA 应用
- SAP-Dialog详解编程语言
- SAP字段与表的对应关系详解编程语言
- SAP FICO事务码F110替代详解编程语言
- SAP在Linux上安装(sap安装linux)
- 系统SAP在Linux系统上的开启之旅(sap启动linux)
- SAP在Linux系统的安装与使用(sap安装linux)
- 比较:Oracle与SAP的对比(oracle和sap)
- 对比:Oracle 与 SAP的优势(oracle 与 sap)
- 系统Oracle公司收购SAP系统开启新的商业时代(Oracle公司sap)
- Oracle SAP系统深入探索管理系统之魅力(oracle sap系统)
- Oracle和SAP教程一步一步学习(oracle sap教程)