Hybris 后台 - 在正确的选项卡中显示属性

Hybris backoffice - display of attributes in correct tab

在后台,对于 B2BUnitB2BCustomer 模型,有一些重要的属性显示在“Administration 下”选项卡。 但我想在“Properites”或“General[下显示它=19=]" 选项卡。我需要更改什么配置?

我希望您已经有一个自定义后台扩展,如果没有,请按照 this tutorial 创建一个。

现在,在您的自定义后台扩展中,您可以找到文件 *backoffice-backoffice-config.xml。在此文件中,您可以定义填充自定义属性的方式和位置。您需要像下面这样为编辑器区域组件声明它。

<context merge-by="type" parent="Customer" type="B2BCustomer" component="editor-area">
    <editorArea:editorArea xmlns:editorArea="http://www.hybris.com/cockpitng/component/editorArea">
        <editorArea:tab xmlns="http://www.hybris.com/cockpitng/component/editorArea" name="hmc.properties">
            <section name="hmc.section.your.custom.section">
                <attribute qualifier="yourAttribute"/>
            </section>
        </editorArea:tab>
    </editorArea:editorArea>
</context>

在这里您可以定义新的自定义部分(hmc.section.your.custom.section)或使用任何现有的部分名称。对于自定义部分,您需要在 labels_en.properties(就像每种语言标签_*.properties 的一种方式)文件中定义它的值。