Difference between revisions of "ModuleTag form field type"
From Joomla! Documentation
(new document) |
|||
Line 9: | Line 9: | ||
<source type="xml"> | <source type="xml"> | ||
<field name="module_tag" type="moduletag" | <field name="module_tag" type="moduletag" | ||
− | + | label="COM_MODULES_FIELD_MODULE_TAG_LABEL" | |
− | + | description="COM_MODULES_FIELD_MODULE_TAG_DESC" | |
− | + | default="div" /> | |
</source> | </source> | ||
[[Category:Standard form field types]] | [[Category:Standard form field types]] |
Revision as of 18:28, 11 September 2013
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" />