on 12-26-2016 8:21 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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:
merge-by attribute has been removed and Product no longer inherits configuration from the parent type
essentials section has been removed
Please refer to the following documentation for more information: Creating and Using UI Configuration Merging Mechanism, Editor Area Widget
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
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.