cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to add new section under ATTRIBUTES tab in the Back office

Former Member
0 Likes
2,662

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.

Accepted Solutions (1)

Accepted Solutions (1)

arvind-kumar_avinash
Active Contributor
0 Likes

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.

Answers (2)

Answers (2)

Former Member
0 Likes

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

Former Member
0 Likes

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>