J1.5

Difference between revisions of "Text parameter type"

From Joomla! Documentation

m (Default value of text parameter type is not translatable)
(Fix red links)
 
(2 intermediate revisions by one other user not shown)
Line 17: Line 17:
 
<noinclude>
 
<noinclude>
 
=== See also ===
 
=== See also ===
* [[Textarea parameter type]]
+
* [[J1.5:Textarea parameter type|Textarea parameter type]]
* [[Standard parameter types|List of standard parameter types]]
+
* [[J1.5:Standard parameter types|List of standard parameter types]]
[[Category:Standard parameter types]]</noinclude>
+
</noinclude>
 +
[[Category:Archived version Joomla! 1.5|{{PAGENAME}}]]

Latest revision as of 03:37, 11 June 2013

The "J1.5" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Params.text.jpg

The text parameter type provides a text box for data entry. If the parameter has a value saved, this value is displayed when the page is first loaded. If not, the default value (if any) is selected.

  • type (mandatory) must be text.
  • name (mandatory) is the unique name of the parameter.
  • label (mandatory) (translatable) is the descriptive title of the field.
  • size (optional) is the width of the text box in characters. If omitted the width is determined by the browser. The value of size does not limit the number of characters that may be entered.
  • default (optional) (not translatable) is the default value.
  • description (optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the drop-down box.
  • class (optional) is a CSS class name for the HTML form field. If omitted this will default to 'text_area'.

Example XML parameter definition:

<param name="mytextvalue" type="text" default="Some text" label="Enter some text" description="" size="10" />

See also[edit]