我需要在嵌套内容页面上添加即时面包屑(例如:我的帐户>订单历史记录>订单明细)。 Spartacus默认情况下尚未提供此功能,因此尚未计划。也许有人知道实现此目标的好方法(解决方法)。
[在SAP存储库中存在一些谈论此的链接:https://github.com/SAP/cloud-commerce-spartacus-storefront/issues/136https://github.com/SAP/cloud-commerce-spartacus-sto
就像您提到的那样,Spartacus中不支持这种功能,但是您仍然可以自定义它以具有这种行为。
首先,请确保您的页面在BreadcrumbComponent
中有一个BottomHeaderSlot
。这是默认的行为。
其次,如此处所述(Is there additional configuration needed to make the breadcrumbs visible in a Spartacus site?),您应该扩展ContentPageMetaResolver
以根据需要解析面包屑。