Joomla XML Standard Field Type – Note

Joomla XML field type – Note works in Joomla versions: 3.1 and higher.

Standard field type Joomla XML – Note allows you to display titles, descriptions, or warning boxes. With the help of headers in the form, you can clean up the order.

This type of field has several display options, below we will consider each.

Option 1: Title and Description

An example of displaying the Note field type (option title and description) in the Joomla 3 admin panel:

Стандартный тип поля Joomla 3 XML — Note - Заголовок и описание

An example of displaying the Note field type (option title and description) in the Joomla 4 admin panel:

Joomla 4 XML Standard Field Type - Note - Title and Description

The Note field code (title type and description) from the image in the XML document looks like this:

				
					<field
       name="mytext"
       type="note"
       label="Field title" 
       description="Field description" />
				
			

Option 2: Warning

This option uses slightly different code in Joomla 3 and Joomla 4.

An example of displaying the Note field type (option with a warning) in the Joomla 3 admin panel:

Joomla 3 XML Standard Field Type - Note - Warning

The Note field code (warning type) from the image in the Joomla 3 XML document looks like this:

				
					<field
       name="mytext"
       type="note"
       class="alert"
       label="Field title" 
       description="Field description" />
				
			

An example of displaying the Note field type (option with a warning) in the Joomla 4 admin panel:

Joomla 4 XML Standard Field Type - Note - Warning

The Note field code (warning type) from the image in the Joomla 4 XML document looks like this:

				
					<field
       name="mytext"
       type="note"
       class="alert alert-warning"
       label="Field title"
       description="Field description" />
				
			

Option 3: Communicationstrong>

An example of displaying the Note field type (option with information) in the Joomla 3 admin panel:

Joomla 3 XML Standard Field Type - Note - Informing

An example of displaying the Note field type (option with information) in the Joomla 4 admin panel:

Joomla 4 XML Standard Field Type - Note - Informing

The Note field code (type informing) from the image in the Joomla XML document looks like this:

				
					<field
       name="mytext"
       type="note"
       class="alert alert-info"
       label="Field title"
       description="Field description" />
				
			

Option 4: Successful notification

An example of displaying the Note field type (option with successful notification) in the Joomla 3 admin panel:

Joomla 3 XML Standard Field Type - Note - Successful Notification

An example of displaying the Note field type (option with successful notification) in the Joomla 4 admin panel:

Joomla 4 XML Standard Field Type - Note - Successful Notification

The Note field code (type with successful notification) from the image in the Joomla XML document looks like this:

				
					<field
       name="mytext"
       type="note"
       class="alert alert-success"
       label="Field title"
       description="Field description" />
				
			

Option 5: Error

An example of displaying the Note field type (variant with an error) in the Joomla 3 admin panel:

Joomla 3 XML Standard Field Type - Note - Error

An example of displaying the Note field type (variant with an error) in the Joomla 4 admin panel:

Joomla 3 XML Standard Field Type - Note - Error

The Note field code (error type) from the image in the Joomla XML document looks like this:

				
					<field
       name="mytext"
       type="note"
       class="alert alert-error"
       label="Field title"
       description="Field description" />
				
			

This field supports attributes:

  • name – system name of the field (field identifier).
  • type – the type of the field, in this case «note».
  • label – display name of the field.
  • description – the displayed description of the field. In Joomla 3 it is displayed as a tooltip when hovering over a field name.
  • class – applied CSS field classes.
  • heading – the type of header element to be used for the label. Default h4.
  • close – can be true or false. If true, then a cross will be enabled in the notification window to close the notification.

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

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

Leave a Reply