cancel
Showing results for 
Search instead for 
Did you mean: 

How to hide a section in backoffice editor area?

former_member708417
Participant
0 Kudos

How to hide a section in backoffice editor area?

I have created an itemtype and configured it in backoffice. But in editor area am getting all the sections, but i need only one section which i have added.

please let me know how to do this.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Just for completion, if someone else is looking for an answer:

You can also remove one section by using merge-mode="remove"

 <context type="Product" component="editor-area" module="platformbackoffice">
      <editorArea:editorArea >
          <editorArea:tab name="hmc.tab.product.properties" position="2">
              <editorArea:section name="hmc.section.catalog_and_validity" merge-mode="remove"/>
          </editorArea:tab>
      </editorArea:editorArea>
  </context>

See the Creating and Using UI Configuration Merging Mechanism as Michal already said.

Cheers, Felix

0 Kudos

Hello,

Please see following configuration snippet which configures Editor Area for the type Product with only one tab, and one section.

 <context type="Product" component="editor-area" module="platformbackoffice">
     <editorArea:editorArea >
         <editorArea:tab name="hmc.tab.product.properties" position="2">
             <editorArea:section name="hmc.section.catalog_and_validity">
                 <editorArea:attribute qualifier="onlineDate"/>
                 <editorArea:attribute qualifier="offlineDate"/>
             </editorArea:section>
         </editorArea:tab>
     </editorArea:editorArea>
 </context>

Also, please notice two things:

  1. merge-by attribute has been removed and Product no longer inherits configuration from the parent type

  2. essentials section has been removed

Please refer to the following documentation for more information: Creating and Using UI Configuration Merging Mechanism, Editor Area Widget