Joomla XML Field Type – URL works in Joomla versions: 2.5 and higher.
Standard field type Joomla XML – Spacer displays a visual separator between fields in a form, which has several display types. Can be a regular line separator or text as a separator. Consider each below.
This field type supports attributes:
- name - system name of the field (field identifier).
- type - field type, in this case «spacer».
- label - the displayed field name.
- description - displayed field description. In Joomla 3 it is displayed as a tooltip when hovering over the field name.
- hr - is responsible for displaying the horizontal line. The value options can be true and false. If the option is true, the value from the label attribute will be ignored.
- class - CSS field classes applied.
Option 1: Line Separator:
This type of separator has the same appearance in both Joomla 3 and Joomla 4 versions.
The line code of the Spacer field from the image in the XML document looks like this:
Option 2: Text Separator:
An example of displaying the Spacer field type in the Joomla 3 admin panel:
An example of displaying the Spacer field type in the Joomla 4 admin panel:
The Spacer field code as a text separator from the image in the XML document looks like this:
Do you need help with generating an XML file? Email us at admin@iws.by and we'll help you.