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 id="foggyline_helpdesk" translate="label" type="text" sortOrder="110" showInDefault="1" showInWebsite="1" showInStore="1"> <...