Hello Magento Friends,

In this tutorial, I am going to describe Magento 2: How to Divide System Configuration Groups in Multiple .xml Files?

Sometimes developers need to divide system configuration groups in multiple .xml files, so other developers can easily understand where we have created system configuration groups.

Let’s dive into How to Divide System Configuration Groups in Multiple .xml Files in Magento 2.

Steps to Divide System Configuration Groups in Multiple .xml Files in Magento 2:

Step 1: First,  create a “system.xml” file inside the extension at the below-given path.

app\code\Vendor\Extension\etc\adminhtml\

Now add the below code

Step 2: After that, we need to create a “group1.xml” file at the following path.

app\code\Vendor\Extension\etc\adminhtml\system\

Then add the below code

Step 3: After that, we need to create a “group2.xml” file at the below path.

app\code\Vendor\Extension\etc\adminhtml\system\

And add the code as follows

You can see that the system configuration groups are divided in the Magento 2 backend.

custom configuration

Conclusion:

Accordingly, you can Divide System Configuration Groups into Multiple .xml Files in Magento 2. Additionally, learn How to Create System.xml Configuration in Magento 2.

If you face any difficulty let me know through the comment box. Share the article with your colleagues and stay updated with our latest Magento 2 tutorials.

Happy Coding!

Click to rate this post!
[Total: 4 Average: 5]