Difference between revisions of "ModuleTag form field type"
From Joomla! Documentation
(Marked for translation) |
|||
Line 1: | Line 1: | ||
− | + | <noinclude><languages /></noinclude> | |
+ | <translate>Provides a list of html5 elements (used to wrap a module in).</translate> | ||
− | * '''type''' (mandatory) must be ''moduletag''. | + | <translate>* '''type''' (mandatory) must be ''moduletag''.</translate> |
− | * '''name''' (mandatory) is the unique name of the field. | + | <translate>* '''name''' (mandatory) is the unique name of the field.</translate> |
− | * '''label''' (mandatory) (translatable) is the descriptive title of the field. | + | <translate>* '''label''' (mandatory) (translatable) is the descriptive title of the field.</translate> |
− | * '''description''' (optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the drop-down box. | + | <translate>* '''description''' (optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the drop-down box.</translate> |
− | Example XML Definition | + | <translate>Example XML Definition:</translate> |
<source type="xml"> | <source type="xml"> | ||
<field name="module_tag" type="moduletag" | <field name="module_tag" type="moduletag" | ||
Line 14: | Line 15: | ||
</source> | </source> | ||
− | [[Category:Standard form field types]] | + | <noinclude><translate>[[Category:Standard form field types]]</translate></noinclude> |
Revision as of 08:45, 20 August 2015
Provides a list of html5 elements (used to wrap a module in).
- type (mandatory) must be moduletag.
- name (mandatory) is the unique name of the field.
- label (mandatory) (translatable) is the descriptive title of the field.
- description (optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the drop-down box.
Example XML Definition:
<field name="module_tag" type="moduletag"
label="COM_MODULES_FIELD_MODULE_TAG_LABEL"
description="COM_MODULES_FIELD_MODULE_TAG_DESC"
default="div" />