Overviewing the System.xml fields
If you take a look at the code created previously, you can see that the fields are grouped inside the <fields></fields>
tags, and each field includes many parts; let's explain them.
The following code is an example of single input field:
<input_field translate="label"> <label>My Input Field: </label> <comment>This is a comment</comment> <frontend_type>text</frontend_type> <sort_order>20</sort_order> <show_in_default>1</show_in_default> <show_in_website>1</show_in_website> <show_in_store>1</show_in_store> </input_field>
The elements used in the code are explained as follows:
<input_field>
: This is the unique node name of the option<Label>
: This is the title of the field, displayed on the left<Comment>
: This is useful to provide extra descriptions or information for the store manager<frontend_type>
: This is the type...