on ‎2019 Jan 08 5:29 AM
Hi ,
I have create a new section under ATTRIBUTES tab by referring OOB code as below.But the new section and attributes are not getting created.The Attributes are created under unbound section of ADMINISTRATION tab only.How can we create the section under ATTRIBUTES TAB.
<editorArea:attribute qualifier="weight" description="hmc.text.product.weight.desc"/>
Kindly let us know if anyone have idea.
Request clarification before answering.
The ATTRIBUTES tab has been created to display the classification features using a custom renderer. Without customizing Java code, you can display your attribute either in PROPERTIES tab or in EXTENDED ATTRIBUTES tab like:
<context merge-by="type" parent="GenericItem" type="Product" component="editor-area" module="platformbackoffice">
<editorArea:editorArea xmlns:editorArea="http://www.hybris.com/cockpitng/component/editorArea" name="">
<editorArea:tab name="hmc.tab.product.extendedattributes" position="26">
<editorArea:section name="hmc.section.product.ids">
<editorArea:attribute qualifier="weight"/>
</editorArea:section>
</editorArea:tab>
</editorArea:editorArea>
</context>
You can also follow https://wiki.hybris.com/pages/viewpage.action?pageId=294094223#Trail~CustomizingBackoffice-CockpitNG... to validate your code.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Panait ,
With above syntax I am able to create the new sections under different tabs except ATTRIBUTES TAB which is given by Hybris OOB as well.It is declared as editorArea:customTab in the pcmbackoffice-backoffice-config.xml file . So I gave the same.
<editorArea:section name="hmc.sec.measurementsout">
</context>
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You should try something like this:
<editorArea:tab name="hmc.tab.product.mytabname">
<editorArea:section name="hmc.product.mysection" merge-mode="replace" columns="1">
<editorArea:attribute qualifier="mycustomproperty1"/>
<editorArea:attribute qualifier="mycustomproperty2"/>
</editorArea:section>
</editorArea:tab>
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.