Tag form field type

From Joomla! Documentation

Revision as of 09:50, 3 April 2013 by Wilsonge (talk | contribs) (Create Tag Form field)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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" />


See also[edit]

[1]