0

I want to add a new submenu to this. How can I do that and add more submenus to the new submenu?

  • I didn't understand your menu and submenu, for exemple Mageplaza extensions is a tab and inside this Mageplaza extensions are sections, so you want to add a new tab called New menu ? – PЯINCƏ Jul 26 '18 at 15:30
  • Do you want new tab like Advanced, Services etc? – Sukumar Gorai Jul 26 '18 at 15:49
  • Do you want to add tabs like ADVANCED, GENERAL etc. or want to add sections under any tab? – Mohit Kumar Arora Jul 26 '18 at 17:29
1

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 :

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.