Edit in GitHubLog an issue

Merge pages

Sections can be merged into pages to cover your extension.

In this example we add a section that may be relevant to our extension to the list of sections underneath one page.

Starting page

Copied to your clipboard
<page name="AdminCategoryPage" url="catalog/category/" area="admin" module="Magento_Catalog">
<section name="AdminCategorySidebarActionSection"/>
<section name="AdminCategoryMainActionsSection"/>
<section name="AdminCategorySidebarTreeSection"/>
<section name="AdminCategoryBasicFieldSection"/>
<section name="AdminCategorySEOSection"/>
<section name="AdminCategoryProductsSection"/>
<section name="AdminCategoryProductsGridSection"/>
<section name="AdminCategoryModalSection"/>
<section name="AdminCategoryMessagesSection"/>
<section name="AdminCategoryContentSection"/>
</page>

File to merge

Copied to your clipboard
<page name="AdminCategoryPage" url="catalog/category/" area="admin" module="Magento_Catalog">
<!-- myExtensionSection will simply be added to the page -->
<section name="MyExtensionSection"/>
</page>

Resultant page

Copied to your clipboard
<page name="AdminCategoryPage">
<section name="AdminCategorySidebarActionSection"/>
<section name="AdminCategoryMainActionsSection"/>
<section name="AdminCategorySidebarTreeSection"/>
<section name="AdminCategoryBasicFieldSection"/>
<section name="AdminCategorySEOSection"/>
<section name="AdminCategoryProductsSection"/>
<section name="AdminCategoryProductsGridSection"/>
<section name="AdminCategoryModalSection"/>
<section name="AdminCategoryMessagesSection"/>
<section name="AdminCategoryContentSection"/>
<!-- New section merged -->
<section name="MyExtensionSection"/>
</page>
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.