Templatestyle form field type

From Joomla! Documentation

This page contains changes which are not marked for translation.
Warning!

This page has been superseded and is no longer maintained. Please go to Joomla Manual Templatestyle Field instead


Provides a dropdown list of style options.

  • name (mandatory) is the unique name of the parameter.
  • type (mandatory) must be templatestyle.
  • client (optional) administrator, defaults to site.
  • label (mandatory) (translatable) is the descriptive title of the field.
  • description description text for the form field.
  • class (optional) for styling.
  • multiple (optional) is whether multiple items can be selected at the same time (true or false). In Joomla 4 it is recommended to use additionally layout="joomla.form.field.groupedlist-fancy-select" in the field declaration (= chosen replacement).

Example XML Definition :

<field name="admin_style" type="templatestyle"
	client="administrator"
	description="COM_ADMIN_USER_FIELD_BACKEND_TEMPLATE_DESC"
	label="COM_ADMIN_USER_FIELD_BACKEND_TEMPLATE_LABEL" >
		<option value="">JOPTION_USE_DEFAULT</option>
</field>