Difference between revisions of "Plugins form field type"

From Joomla! Documentation

(new document)
 
(Marked for translation)
Line 1: Line 1:
provides a dropdown list of plugin options from the folder.
+
<noinclude><languages /></noinclude>
 +
<translate>Provides a dropdown list of plugin options from the folder.</translate>
  
* '''name''' (mandatory) is the unique name of the parameter.
+
<translate>* '''name''' (mandatory) is the unique name of the parameter.</translate>
* '''type''' (mandatory) must be ''plugin''.
+
<translate>* '''type''' (mandatory) must be ''plugin''.</translate>
* '''folder''' (mandatory) editor or captcha.
+
<translate>* '''folder''' (mandatory) editor or captcha.</translate>
* '''label''' (mandatory) (translatable) is the descriptive title of the field.
+
<translate>* '''label''' (mandatory) (translatable) is the descriptive title of the field.</translate>
* '''description''' description text for the form field.
+
<translate>* '''description''' description text for the form field.</translate>
  
 
+
<translate>Example XML Definition:</translate>
Example XML Definition
 
 
<source type="xml">
 
<source type="xml">
 
<field name="editor" type="plugins" folder="editors"
 
<field name="editor" type="plugins" folder="editors"
Line 16: Line 16:
 
</field></source>
 
</field></source>
  
 +
<noinclude>
 +
<translate>
 
[[Category:Standard form field types]]
 
[[Category:Standard form field types]]
 +
</translate>
 +
</noinclude>

Revision as of 19:58, 22 August 2015

Other languages:
English • ‎Nederlands • ‎español • ‎français

Provides a dropdown list of plugin options from the folder.

  • name (mandatory) is the unique name of the parameter.
  • type (mandatory) must be plugin.
  • folder (mandatory) editor or captcha.
  • label (mandatory) (translatable) is the descriptive title of the field.
  • description description text for the form field.

Example XML Definition:

<field name="editor" type="plugins" folder="editors"
	description="COM_USERS_USER_FIELD_EDITOR_DESC"
	label="COM_USERS_USER_FIELD_EDITOR_LABEL" >
	<option value="">JOPTION_USE_DEFAULT</option>
</field>