templates - 如何在 Spartacus 店面 3.0 上添加一些图像,由背面 Smart Edit 控制
问题描述
我正在尝试将带有图像的插座添加到登录布局。到目前为止工作正常,但我希望根据视口以不同尺寸从背面控制图像。
<ng-template cxOutletRef="LoginPageTemplate" cxOutletPos="before" let-model>
<p>here goes an image</p>
</ng-template>
我怎样才能在那里添加媒体?
解决方案
我建议不要使用插座,而是在LoginPageTemplate
.
如果您决定在单独的插槽中添加横幅组件,那么您可能需要调整 SpartacusLayoutConfig
以LoginPageTemplate
显示您的新插槽(请参阅文档https://sap.github.io/spartacus-docs/page-layout/)
...并且,如果需要,修复 CSS 样式(请参阅文档https://sap.github.io/spartacus-docs/css-architecture/)。
推荐阅读
- sql - Posgresql 交叉表替代方案
- c# - 如何从十六进制字符串中获取位范围并将其转换为整数?
- javascript - 使用 lodash orderby 对字母数字字段进行排序
- kubernetes - Kubernetes 显示多个请求而不是一个
- javascript - 尝试理解 npm 进行前端开发
- c# - MogoDB 作为 IdentityServer 的存储:invalid_scope
- php - 如何跨多个 phpunit 集成测试共享单个数据库连接?
- azure - 通过 Azure 数据工厂将数据复制到 cosmosdb
- java - 在我的 while 循环中调用这些方法时遇到问题
- .net - 达世币问题,底层连接已关闭:连接意外关闭