Difference between revisions of "Hidden parameter type"

From Joomla! Documentation

m (Fixed category mess)
(This is a parameter, not a form field.)
Line 10: Line 10:
=== See also ===
=== See also ===
* [[Standard form field types|Table of all standard form field types]]
* [[Standard parameter types|List of standard parameter types]]
[[Category:Standard form field types]]</noinclude>
[[Category:Standard parameter types]]</noinclude>

Revision as of 15:19, 20 May 2011

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.

The hidden parameter type provides a hidden field for saving a parameter whose value cannot be altered directly by a user in the Administrator (it can be altered in code or by editing the params.ini file). If the parameter has a saved value this is entered in the text box. If not, the default value (if any) is entered. As the field is hidden there is no visible field in the Administrator.

  • type (mandatory) must be hidden.
  • name (mandatory) is the unique name of the parameter.
  • default (mandatory) is the data which needs to be collected.
  • 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="mysecretvariable" type="hidden" default="" />

See also