Joomla XML Standard Field Type – Spacer

Standard field type Joomla XML – Spacer displays a visual separator between fields in a form, which has several display types.

The first option to display the separator looks like this:

Joomla field XML Spacer - separator type «Stripe»

This kind of separator adds a simple horizontal bar, which has the following code:

<field name="myspacer" type="spacer" hr="true"/>
Code language: YAML (yaml)

The second option for displaying the separator looks like this:

Joomla field XML Spacer - delimiter type «Text delimiter»

This kind of separator adds only text. The code for this separator is as follows:

<field name="myspacer" type="spacer" label="Текстовый разделитель"/>
Code language: YAML (yaml)

The delimited field has the following attributes:

  • name – the system name of the field.
  • type – the type of the field, in this case «spacer».
  • label – the display name of the field.
  • description – the displayed field description. In Joomla 3, it is displayed as a tooltip when hovering over a field name.
  • hr – responsible for displaying a horizontal line. Values can be true or false. If the option is set to true, then the value from the label attribute will be ignored.
  • class – applied CSS field classes.

For now, that’s all there is to it about the Joomla XML field type – Spacer. If we receive new information, it will be added to this article.

Do you need help generating an XML file? Write to us at and we will help you.

Leave a Reply