这可能是一个简单的问题,但我不能在6个小时内完成。
我想在Backoffice>中添加复选框目录>产品属性选项卡。 我的问题是
答案 0 :(得分:0)
您需要将其添加到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>
默认情况下,您还可以在“添加管理”选项卡“未绑定”部分中查看新属性。