on 01-27-2016 12:28 AM
I want to add new fields in the essentials section of the Product's editor area in the Backoffice. I used the following XML snippet in our Backoffice configuration:
<context merge-by="module" parent="auto" type="Product" component="editor-area">
<editorArea:editorArea xmlns:editorArea="http://www.hybris.com/cockpitng/component/editorArea">
<editorArea:essentials xmlns="http://www.hybris.com/cockpitng/component/editorArea">
<essentialSection name="hmc.essential">
<attribute qualifier="customField1"/>
<attribute qualifier="customField2"/>
</essentialSection>
</editorArea:essentials>
</editorArea:editorArea>
</context>
I can see my two custom fields in the Product's essentials section but the standard fields like code, catalogVersion are not there anymore. It seems it replaces the standard essentials section by my configuration instead of merging it with the standard configuration.
I tried merge-by="type"
instead of merge-by="module"
but it did not helped. I've tried to define a new essential section with a different name, it did not helped: my new section appears but the hmc.essential section does not show up. Finally, I've tried to add the attribute merge-mode="add"
and merge-mode="append"
in the essentialSection
and essentials
tags but it did not helped (it would be helpful to define in the XSD the possible values for this attribute)
Am I doing something wrong? If not, is there a way to append new fields to an existing essentials section? I saw many times in the standard hybris Backoffice configuration files that the essentials
tag had the attribute merge-mode="replace"
. Is it the only way to customize the essentials section?
Something like this should work:
<context merge-by="type" type="Product" component="editor-area">
<editorArea:editorArea xmlns:editorArea="http://www.hybris.com/cockpitng/component/editorArea">
<editorArea:essentials xmlns="http://www.hybris.com/cockpitng/component/editorArea">
<essentialSection name="hmc.essential">
<attribute qualifier="customField1" merge-mode="add"/>
</essentialSection>
</editorArea:essentials>
</editorArea:editorArea>
</context>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.