Difference between revisions of "Tag form field type"
From Joomla! Documentation
(Create Tag Form field) |
(Add Name of link) |
||
Line 22: | Line 22: | ||
=== See also === | === See also === | ||
− | [http://magazine.joomla.org/issues/issue-apr-2103/item/1225-joomla-tag-field] | + | [http://magazine.joomla.org/issues/issue-apr-2103/item/1225-joomla-tag-field Joomla! Community Magazine April 2013 Issue] |
[[Category:Standard form field types]] | [[Category:Standard form field types]] | ||
</noinclude> | </noinclude> |
Revision as of 09:51, 3 April 2013
The Tag field type provides a point where you can enter tags - this is either AJAX or nested.
- type (mandatory) must be tag.
- name (mandatory) is the unique name of the parameter.
- mode (optional) (translatable) is the description of the field.
- label (mandatory) (translatable) is the descriptive title of the field.
- description (optional) (translatable) is the description of the field.
- id (optional) is the id to add to the field. Note if none is set this will be the name of the field.
- class (optional) is the class to add to the field.
- published (optional)
- language (optional) is language to filter the existing tags by.
- multiple (optional) is the ability to add more than 1 tag to the form field.
- custom (optional) if the ajax mode is chosen setting this to deny will prevent users from adding in new tags.
Example XML Definition for an AJAX Tag
<field name="tags" type="tag" label="JTAG" description="JTAG_DESC" mode="ajax" class="inputbox span12 small" multiple="true" />
Example XML Definition for an Nested Tag
<field name="tags" type="tag" label="JTAG" description="JTAG_DESC" mode="nested" class="inputbox span12 small" multiple="true" />