Joomla XML Standard Field Type – Color

Standard field type Joomla XML – Color displays a field for entering a color code or selection from a color palette.

The field in the form looks like this:

The field code from the image looks like this:

<field name="backgroundcolor" type="color" default="#eee" format="rgba" label="Поле-палитра" description="Описание поля" />
Code language: YAML (yaml)

This field supports attributes:

  • name – the system name of the field.
  • type – the type of the field, in this case «color».
  • default – sets the default value of the field.
  • format – indicates the type of color format in the field. Can be rgb, rgba and hex.
  • 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.

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

Leave a Reply