I want to add a new submenu to this. How can I do that and add more submenus to the new submenu?
1 Answer
app/code/Vendor/Module/etc/adminhtml/system.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
<system>
<tab id="generalmen" translate="label" sortOrder="900">
<label>New menu</label>
</tab>
<section id="generalmenu" translate="label" sortOrder="130" showInDefault="1" showInWebsite="1" showInStore="1">
<class>separator-top admin-newmenu</class>
<label>Section1</label>
<tab>generalmen</tab>
<resource>Vendor_Module::general_config</resource>
<group id="general" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Group1</label>
<field id="field1" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Field1</label>
</field>
</group>
</section>
</system>
</config>
This will add :

Mageplaza extensionsis ataband inside thisMageplaza extensionsare sections, so you want to add a new tab calledNew menu?