在后台,对于B2BUnit和B2BCustomer模型,“管理”选项卡下显示了一些重要的属性。但我想在“属性”或“常规”选项卡下显示它。我需要更改什么配置?
1520 次
1 回答
3
我希望您已经拥有一个自定义后台扩展,如果没有,请按照本教程创建一个。
现在,在您的自定义后台扩展中,您可以找到文件*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 文件中定义它的值(就像每种语言的方法 labels_*.properties)。
于 2019-11-19T06:37:39.877 回答