SAP Spartacus Breadcrumbs Component的显示问题讨论
生活随笔
收集整理的這篇文章主要介紹了
SAP Spartacus Breadcrumbs Component的显示问题讨论
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
如果把Storefront.component.html里position為BottomHeaderSlot改成其他名稱:
按照其注釋寫到:
position是用于為指定的page slot定位CMS Component而設計的。
The position is used to find the CMS components for the page slot.
因此,改動之后,Breadcrumbs Component從最后渲染出的頁面上消失了:
從下圖Commerce Cloud Restful API返回的response能看出,我們在Spartacus Storefront.component.html里的position,必須硬編碼為BottomHeaderSlot,只有這樣才能和OCC API返回的CMS Component元數據一致:
更多Jerry的原創文章,盡在:“汪子熙”:
總結
以上是生活随笔為你收集整理的SAP Spartacus Breadcrumbs Component的显示问题讨论的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 方舟生存进化各岛地图及资源分布图文详解
- 下一篇: MUI学习01-MUI概括、使用前引入C