O'Reilly logo

Mastering Magento Theme Design by Andrea Saccà

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

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 ...

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