Standard Joomla XML field type – Color

Field type Joomla XML – Color works in Joomla versions: 2.5 and higher.

Standard field typeJoomla XML – Color adds a text box with a color palette where you can enter a color code or select the desired color from the palette. The data in the field can be filled in several formats.

The standard Joomla Color field type supports attributes:

Option 1: RGB format.

An example of displaying the Color field type (RGB format) in the Joomla 3 admin panel:

Joomla 3 XML Standard Field Type - Color
If you place the cursor in a field, a color selection palette opens next to the field:
Joomla 3 XML Standard Field Type - Color - Active Cursor

Example of displaying Color field type (RGB format) in Joomla 4 and Joomla 5 admin panel:

Joomla 4 XML Standard Field Type - Color
If you place the cursor in a field, a color selection palette opens next to the field:
Joomla 4 XML Standard Field Type - Color - Active Cursor

The Color field code (RGB format) from the image in the XML document looks like this:

				
					<field 
       name="mycolor"
       type="color"
       format="rgb"
       label="Choose a color" 
       description="Select or enter a color in RGB format."/>
				
			

Option 2: RGBA format.

An example of displaying the Color field type (RGBA format) in the Joomla 3 admin panel:

Joomla 3 Standard Field Type XML - Color - RGBA Format
If you place the cursor in a field, a color selection palette opens next to the field:
Joomla 3 XML Standard Field Type - Color - RGBA Format - Active Cursor

Example of displaying Color field type (RGBA format) in Joomla 4 and Joomla 5 admin panel:

Joomla 4 Standard Field Type XML - Color - RGBA Format
If you place the cursor in a field, a color selection palette opens next to the field:
Joomla 4 XML Standard Field Type - Color - RGBA Format - Active Cursor

The Color field code (RGBA format) from the image in the XML document looks like this:

				
					<field 
       name="mycolor"
       type="color"
       format="rgba"
       label="Choose a color" 
       description="Select or enter a color in RGBA format."/>
				
			

Option 3: HEX format.

An example of displaying the Color field type (HEX format) in the Joomla 3 admin panel:

Joomla 3 standard field type XML - Color - HEX format
If you place the cursor in a field, a color selection palette opens next to the field:
Joomla 3 Standard Field Type XML - Color - HEX Format - Active Cursor

Example of displaying the Color field type (HEX format) in the Joomla 4 and Joomla 5 admin panel:

Joomla 4 standard field type XML - Color - HEX format
If you place the cursor in a field, a color selection palette opens next to the field:
Standard field type Joomla 4 XML - Color - HEX format - Active cursor

The Color field code (HEX format) from the image in the XML document looks like this:

				
					<field 
       name="mycolor"
       type="color"
       format="hex"
       label="Choose a color" 
       description="Select or enter a color in HEX format."/>
				
			
Standard Joomla XML field type - Color
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?

Telegram
0 Wishlist
0 items Cart
Консультация по услуге:

Вам нужно оказать услугу по формированию файла с XML полями для Joomla? Заполните форму ниже с информацией о необходимых вам данных и получите цену готового файла с полями Joomla XML

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