Actions

J1.5

Difference between revisions of "Text parameter type"

From Joomla! Documentation

(New page: right 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 ...)
 
m (Added more categorisations because this page is generic.)
Line 1: Line 1:
 
[[Image:Params.text.jpg|right]]
 
[[Image:Params.text.jpg|right]]
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.  
+
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''.
 
* '''type''' (mandatory) must be ''text''.
Line 16: Line 16:
 
* [[Textarea parameter type]]
 
* [[Textarea parameter type]]
 
* [[Standard parameter types|Full list of standard parameter types]]
 
* [[Standard parameter types|Full list of standard parameter types]]
</noinclude>
+
[[Category:Components]][[Category:Modules]][[Category:Plugins]][[Category:Templates]][[Category:Development]]</noinclude>
[[Category:Templates]]
+

Revision as of 17:41, 21 August 2008

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.
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) (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