O'Reilly logo

Magento 2 Developer's Guide by Branko Ajzele

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a system configuration file (system.xml)

The system.xml file is essentially the Stores | Configuration interface builder. Entries we define in our module's system.xml file will render certain parts of the Stores | Configuration interface under the Magento admin area.

Unlike the previous two XML files, this configuration file is located under an additional subfolder, so its full path goes like app/code/Foggyline/Helpdesk/etc/adminhtml/system.xml, with content as follows:

<?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="foggyline" translate="label" sortOrder="200"> <label>Foggyline</label> </tab> <section ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required