Standard Joomla XML field type - URL

Standard field type Joomla XML - URL displays a plain text field in which the direct link (URL) is filled. Type of field Joomla XML - URL works in versions Joomla 2.5 and above. The field works with the preservation of any type of URL, including with idn - it guarantees the preservation of any entered email address, regardless of type and environment.

To correctly display the field address in idn format, you must use the conversion function:

				
					JStringPunycode::urlToUTF8($this->contact->webpage);
				
			

This field supports attributes:

  • name - system name of the field (field identifier).
  • type - field type, in this case «url».
  • label - the displayed field name.
  • class - CSS field classes applied.
  • description - displayed field description. In Joomla 3 it is displayed as a tooltip when hovering over the field name.
  • default - sets the default value of the field.
  • required - sets the mandatory field attribute. A form without this field will not be able to be submitted. Possible options are true and false.
  • readonly - sets the field to read-only mode, the field value cannot be changed. The options are true and false.
  • maxlength - sets the maximum number of characters that can be entered.
  • size - width of the text field in characters. If the field width is not specified, it takes the value from the user's browser. This attribute does not limit the number of input characters.
  • disabled - makes the field unavailable for modification. The value in the field is not saved. The options are true and false.
  • hint - adds a placeholder (hint) to the field.
  • autocomplete - disables auto-completion of the field. To disable it you need to specify a value for example autocomplete="off". To make autocomplete available, simply remove this attribute.
  • autofocus - sets autofocus on the field after the page is loaded.
  • onchange - attribute that will add JavaScript code to the field that is executed when the data in the field changes.
  • spellcheck - instructs the browser whether to check the grammar in the field. The options are true and false.
  • filter — sets the option of filtering the data in the field.
  • validate - connects a mask to the field to validate it.
  • relative - if true, free URLs can be entered.

Example of a field in the CMS Joomla 3:

Стандартный тип поля Joomla XML - URL — Пример на Joomla 3

Example of a field in CMS Joomla 4 and Joomla 5:

Стандартный тип поля Joomla XML - URL — Пример на Joomla 4

The XML code of the field from the example looks like this:

				
					<field
       name="url"
       type="url"
       label="URL"
       description="Enter the desired URL"/>
				
			

Please note

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

Standard Joomla XML field type - URL
Joomla XML Form Generation

Do you need help with Joomla XML form with fields? Email us, we will evaluate the work and help you. Click the button below.

Sign in

No account yet?

We use cookies to improve your experience of our website and its performance. By browsing the site, you agree to our use of cookies.
0 items Cart
Consultation on the service:

You need a service to generate a file with XML fields for Joomla? Fill out the form below with information about the data you need and get a price for the finished file with Joomla XML fields

Consultation on the service:

You need a service to generate a file with XML fields for Joomla? Fill out the form below with information about the data you need and get a price for the finished file with Joomla XML fields