Joomla XML Standard Field Type – Textarea

Joomla XML field type – Textarea works in Joomla versions: 2.5 and higher.

Standard field type Joomla XML – Textarea displays a regular multi-line text field with the ability to save any text data. If there is saved data in the field, it will be displayed in the field after the page is loaded. If there is no saved data, the field will try to fill in the data from the default attribute.

Note: Вам нужно сделать перенос на следующую строку, просто используйте тег <br>.

An example of displaying the Textarea field type in the Joomla 3 admin panel:

Joomla 3 XML Standard Field Type - Textarea

An example of displaying the Textarea field type in the Joomla 4 admin panel:

Joomla 4 XML Standard Field Type - Textarea

The Textarea field code from the image in the XML document looks like this:

				
					<field 
       name="mytextvalue"
       type="textarea"
       label="Enter text" 
       description="Field description"/>
				
			

This field supports attributes:

  • name – system name of the field (field identifier).
  • type – the type of the field, in this case «textarea».
  • 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. If not specified, the class name «text_area» is used.
  • default – sets the default value of the field.
  • rows – sets the number of lines in the text box. If not set, the value will be assigned from the user’s browser.
  • cols – sets the width of the text box in characters. If not set, the value will be assigned from the user’s browser.
  • filter – sets the option for filtering data in the field.
  • hint – adds a placeholder (hint) to the field.

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

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

Leave a Reply