如何在一个选项卡中隐藏现有属性并在另一个选项卡中显示它
How to hide an existing attribute in one tab and show it in the other tab
Hybris 后台 OOTB 配置附带此属性“最后更改”,显示在管理选项卡中,如下所示。
我有一个要求,我需要将相同的属性移动到“历史记录”选项卡,如上所示。
我已经根据下面的代码进行了以下更改以引入该属性
<context merge-by="type" parent="GenericItem" type="Product" component="editor-area" module="pcmbackoffice"
principal="backofficeadministratorrole,merchandisergroup,digitalmerchandisergroup,marketplacemanagergroup">
<editorArea:editorArea xmlns:editorArea="http://www.hybris.com/cockpitng/component/editorArea">
<editorArea:tab name="hmc.tab.product.change.logs" position="32" displayEssentialSectionIfPresent="false" merge-mode="merge">
<editorArea:section name="hmc.tab.product.change.logs">
<editorArea:attribute qualifier="SavedValues"
editor="com.hybris.cockpitng.editor.defaultmultireferenceeditor" merge-mode="merge">
<editorArea:editor-parameter>
<editorArea:name>readOnly</editorArea:name>
<editorArea:value>true</editorArea:value>
</editorArea:editor-parameter>
</editorArea:attribute>
</editorArea:section>
</editorArea:tab>
</editorArea:editorArea>
</context>
属性在历史选项卡中显示正常,如下所示
问题:
我想从管理中隐藏/删除“最后更改”属性 tab.How 我可以这样做吗?请指教
您可以使用以下代码:
<context parent="GenericItem" type="Product" component="editor-area">
<editorArea:editorArea xmlns:editorArea="http://www.hybris.com/cockpitng/component/editorArea">
<editorArea:tab name="hmc.administration">
<editorArea:section name="hmc.section.saved.values" merge-mode="remove" >
<editorArea:attribute qualifier="SavedValues" merge-mode="remove"/>
</editorArea:section>
</editorArea:tab>
</editorArea:editorArea>
</context>
Hybris 后台 OOTB 配置附带此属性“最后更改”,显示在管理选项卡中,如下所示。
我有一个要求,我需要将相同的属性移动到“历史记录”选项卡,如上所示。 我已经根据下面的代码进行了以下更改以引入该属性
<context merge-by="type" parent="GenericItem" type="Product" component="editor-area" module="pcmbackoffice"
principal="backofficeadministratorrole,merchandisergroup,digitalmerchandisergroup,marketplacemanagergroup">
<editorArea:editorArea xmlns:editorArea="http://www.hybris.com/cockpitng/component/editorArea">
<editorArea:tab name="hmc.tab.product.change.logs" position="32" displayEssentialSectionIfPresent="false" merge-mode="merge">
<editorArea:section name="hmc.tab.product.change.logs">
<editorArea:attribute qualifier="SavedValues"
editor="com.hybris.cockpitng.editor.defaultmultireferenceeditor" merge-mode="merge">
<editorArea:editor-parameter>
<editorArea:name>readOnly</editorArea:name>
<editorArea:value>true</editorArea:value>
</editorArea:editor-parameter>
</editorArea:attribute>
</editorArea:section>
</editorArea:tab>
</editorArea:editorArea>
</context>
属性在历史选项卡中显示正常,如下所示
问题:
我想从管理中隐藏/删除“最后更改”属性 tab.How 我可以这样做吗?请指教
您可以使用以下代码:
<context parent="GenericItem" type="Product" component="editor-area">
<editorArea:editorArea xmlns:editorArea="http://www.hybris.com/cockpitng/component/editorArea">
<editorArea:tab name="hmc.administration">
<editorArea:section name="hmc.section.saved.values" merge-mode="remove" >
<editorArea:attribute qualifier="SavedValues" merge-mode="remove"/>
</editorArea:section>
</editorArea:tab>
</editorArea:editorArea>
</context>