首页 > 解决方案 > 如何在 Spartacus 店面 3.0 上添加一些图像,由背面 Smart Edit 控制

问题描述

我正在尝试将带有图像的插座添加到登录布局。到目前为止工作正常,但我希望根据视口以不同尺寸从背面控制图像。

<ng-template cxOutletRef="LoginPageTemplate" cxOutletPos="before" let-model>
  <p>here goes an image</p>
</ng-template>

我怎样才能在那里添加媒体?

标签: templatesspartacus-storefront

解决方案


我建议不要使用插座,而是在LoginPageTemplate.

如果您决定在单独的插槽中添加横幅组件,那么您可能需要调整 SpartacusLayoutConfigLoginPageTemplate显示您的新插槽(请参阅文档https://sap.github.io/spartacus-docs/page-layout/

...并且,如果需要,修复 CSS 样式(请参阅文档https://sap.github.io/spartacus-docs/css-architecture/)。


推荐阅读