J1.5

Difference between revisions of "Hidden parameter type"

From Joomla! Documentation

m (→‎See also: archiving articles with category removal and addition)
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
{{Ambox|type=notice|text=[[Parameter|Parameters]] have been superseded by [[Form field|form fields]] in Joomla! 1.6. You may want to use the corresponding [[Hidden form field type]].}}
 +
 
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.
 
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.
  
Line 10: Line 12:
 
<noinclude>
 
<noinclude>
 
=== See also ===
 
=== See also ===
* [[Standard parameter types|Full list of standard parameter types]]
+
* [[Standard parameter types|List of standard parameter types]]
[[Category:Components]][[Category:Modules]][[Category:Plugins]][[Category:Templates]][[Category:Development]]</noinclude>[[Category:Template Development]]
+
</noinclude>
[[Category:Module Development]]
+
[[Category:Archived version Joomla! 1.5|{{PAGENAME}}]]
[[Category:Plugin Development]]
 
[[Category:Component Development]][[Category:References]]
 

Revision as of 08:37, 30 April 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.

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[edit]