源代码位置:b2c-storefront.module.ts:

import { LayoutConfig } from '../../layout/config/layout-config';export const b2cLayoutConfig: LayoutConfig = {// deferredLoading: {//   strategy: DeferLoadingStrategy.DEFER,//   intersectionMargin: '50px',// },layoutSlots: {header: {lg: {slots: ['SiteContext','SiteLinks','SiteLogo','SearchBox','SiteLogin','MiniCart','NavigationBar',],},slots: ['PreHeader', 'SiteLogo', 'SearchBox', 'MiniCart'],},navigation: {lg: { slots: [] },slots: ['SiteLogin', 'NavigationBar', 'SiteContext', 'SiteLinks'],},footer: {slots: ['Footer'],},LandingPage2Template: {pageFold: 'Section2B',slots: ['Section1','Section2A','Section2B','Section2C','Section3','Section4','Section5',],},ContentPage1Template: {slots: ['Section2A', 'Section2B'],},CategoryPageTemplate: {pageFold: 'Section2',slots: ['Section1', 'Section2', 'Section3'],},ProductListPageTemplate: {slots: ['ProductLeftRefinements', 'ProductListSlot'],},ProductGridPageTemplate: {slots: ['ProductLeftRefinements', 'ProductGridSlot'],},SearchResultsListPageTemplate: {slots: ['Section2','ProductLeftRefinements','SearchResultsListSlot','Section4',],},SearchResultsGridPageTemplate: {slots: ['Section2','ProductLeftRefinements','SearchResultsGridSlot','Section4',],},ProductDetailsPageTemplate: {lg: {pageFold: 'UpSelling',},pageFold: 'Summary',slots: ['Summary','UpSelling','CrossSelling','Tabs','PlaceholderContentSlot',],},CartPageTemplate: {slots: ['TopContent', 'CenterRightContentSlot', 'EmptyCartMiddleContent'],},AccountPageTemplate: {slots: ['BodyContent', 'SideContent'],},LoginPageTemplate: {slots: ['LeftContentSlot', 'RightContentSlot'],},ErrorPageTemplate: {slots: ['TopContent', 'MiddleContent', 'BottomContent'],},OrderConfirmationPageTemplate: {slots: ['BodyContent', 'SideContent'],},MultiStepCheckoutSummaryPageTemplate: {slots: ['TopContent', 'BodyContent', 'SideContent', 'BottomContent'],},CheckoutLoginPageTemplate: {slots: ['RightContentSlot'],},},
};

进入SAP Spartacus的contact页面:

从Chrome开发者工具观察page请求,找到template id:ContentPage1Template

在b2c-layout-config.ts里找到了对应的实现:

要获取更多Jerry的原创文章,请关注公众号"汪子熙":

SAP Spartacus的b2cLayoutConfig相关推荐

  1. SAP Spartacus 4.0 版本因为 hamburger 依赖导致构建出错的问题

    build from Schematics 遇到错误消息: SassError: Undefined function. https://github.com/SAP/spartacus/issues ...

  2. SAP Spartacus UI 服务器端渲染的调试启动方式 - debug 模式

    首先确认你已经熟悉这篇文章的启动方式:SAP Spartacus develop branch 的服务器端渲染启动方式. 第一步 添加一个新的 build script,把 --configurati ...

  3. SAP Spartacus Session affinity

    参见这个讨论. 后端运行在多个 pods/节点时,当子序列请求过早进入时,后端将无法跨集群发送缓存失效请求.此外,如果多个请求分散在多个节点上,则会消耗延迟和不必要的资源. 对于单个客户端,Spart ...

  4. SAP Spartacus 4.0 的技术变化

    在您迁移到 4.0 版库之前,我们强烈建议您切换到新的应用程序结构和新的功能库. 在多个小步骤中进行迁移更容易(迁移到新的应用程序结构,切换到提取的功能库,然后迁移到 4.0),您可以确保在每一步之后 ...

  5. SAP Spartacus travis ci-scripts 下面 e2e-cypress.sh 的实现分析

    文件地址:https://github.com/SAP/spartacus/blob/develop/.travis.yml 里面引用到了 e2e-cypress.sh: https://github ...

  6. SAP Spartacus 里的 .release-it.json 文件

    在 SAP Spartacus package.json 里有一个依赖叫做 release-it: 这个工具的链接:https://github.com/release-it/release-it 这 ...

  7. SAP Spartacus PageLayoutComponent 如何知道自己应该显示哪些具体内容

    我们以前介绍过,经过 SAP Spartacus 路由配置后的 routes 数组,其 route 数据结构的 Component 属性,清一色指向 generic 的 PageLayoutCompo ...

  8. SAP Spartacus UI Duplicated keys has been found in the config of i18n chunks

    在测试 SAP Spartacus 3.4.5 版本的 SSR 功能时,发现一个 warning 信息: console.warn(`Duplicated keys has been found in ...

  9. 如何运行 SAP Spartacus cypress 端到端测试

    首先在本地启动 Spartacus instance, 比如执行 b2c.bat: 进入文件夹:projects/storefrontapp-e2e yarn install: 然后 yarn cy: ...

最新文章

  1. 33条C#、.Net经典面试题目及答案
  2. 开拓新格局 共赢新 Power 2021浪潮商用机器新布局
  3. Request 部分功能
  4. wms仓库管理系统选型要注意哪几点?
  5. xp配置iis和php,XP下让IIS支持PHP
  6. 《算法设计与分析》期末不挂科
  7. ADB下载及常用命令
  8. ArcGIS 矢量数据的合并
  9. FreeSwitch笔记
  10. Highcharts exporting属性实现图表导出为图片、PDF
  11. html插入页码,Word添加页码后,每一页的页码都一样怎么办?
  12. CwRsync安装配置
  13. 计算机共享文件夹不要用户名密码怎么设置,Win7电脑怎么设置不用密码也能访问共享文件?...
  14. 积累一些平时制作Excel 表格的常用公式与方法
  15. 计算机图形学中需要掌握的数学基础知识有哪些?
  16. Landsat 行列号与经纬度在线转换
  17. 【100%通过率】华为OD机试真题 C++ 实现【最优芯片资源占用】【2023 Q1 | 100分】
  18. 跳槽入职字节跳动,给到20K16薪,只因比别人更懂多线程与高并发
  19. iis7 winmail php,winmail+php的配置
  20. SAP自定义权限对象

热门文章

  1. 编译php源码错误集与解决
  2. Ueditor/自定义配置
  3. 提高页面显示速度的秘技
  4. Mysql 中根据条件排序获取排名
  5. MySQL配置文件优化
  6. 模拟搭建Web项目的真实运行环境(五)
  7. Quartus 使用tcl分配管脚
  8. 【随】WCF传输大数据的设置
  9. Jenkins 关闭和重启实现方式.
  10. 文献记录(part80)--基于平均互信息的最优社区发现方法