【问题标题】:How to add checkbox to hybris如何将复选框添加到 hybris
【发布时间】:2017-09-10 12:12:50
【问题描述】:

这可能是一个简单的问题,但我做不到 6 个小时。

我想将复选框添加到后台 > 目录 > 产品属性选项卡。 我的问题是

  1. 如何添加复选框
  2. 如果应该写入jsp文件到哪里找那个文件。
  3. 复选框的功能写入什么文件

【问题讨论】:

    标签: hybris backoffice


    【解决方案1】:

    您需要将其添加到 backoffice-config.xml 文件中。您需要覆盖属性选项卡并在此处添加模型属性。如果您的属性类型是布尔值,zk 框架会自动出现该属性的复选框。如果是其他类型,则需要为此属性添加自定义编辑器。

    例如下面的示例 ovveride 选项卡。

    <context type="Customer" merge-by="type" component="editor-area">
        <editorArea:editorArea>
            <editorArea:tab name="hmc.tab.common" position="1">
                <editorArea:section name="hmc.properties">
                    <editorArea:attribute qualifier="myAttribute" />
                </editorArea:section>
            </editorArea:tab>
        </editorArea:editorArea>
    </context>
    

    您还可以在 Addmistration 选项卡默认未绑定部分查看新属性。

    【讨论】:

      猜你喜欢
      • 2011-03-05
      • 1970-01-01
      • 1970-01-01
      • 2021-01-07
      • 2014-03-03
      • 2016-11-15
      • 2021-04-09
      • 2011-12-05
      • 2011-03-19
      相关资源
      最近更新 更多