Difference between revisions of "Spacer parameter type"
From Joomla! Documentation
m (Fixed category mess) |
(Fix red link) |
||
(6 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
[[Image:Params.spacer.jpg|right]] | [[Image:Params.spacer.jpg|right]] | ||
+ | |||
+ | {{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 [[Spacer form field type]].}} | ||
+ | |||
The '''spacer''' parameter type provides a visual separator between parameter field elements. It is purely a visual aid and no parameter value is stored. | The '''spacer''' parameter type provides a visual separator between parameter field elements. It is purely a visual aid and no parameter value is stored. | ||
* '''type''' (mandatory) must be ''spacer''. | * '''type''' (mandatory) must be ''spacer''. | ||
* '''default''' (optional) (translatable) is a string which will be used instead of the ''<nowiki><hr /></nowiki>'' that is inserted by default. | * '''default''' (optional) (translatable) is a string which will be used instead of the ''<nowiki><hr /></nowiki>'' that is inserted by default. | ||
− | |||
Example XML parameter definition: | Example XML parameter definition: | ||
Line 16: | Line 18: | ||
<noinclude> | <noinclude> | ||
=== See also === | === See also === | ||
− | * [[Standard | + | * [[J1.5:Standard parameter types|List of standard parameter types]] |
− | [[Category: | + | </noinclude> |
+ | [[Category:Archived version Joomla! 1.5|{{PAGENAME}}]] |
Latest revision as of 03:35, 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.
Parameters have been superseded by form fields in Joomla! 1.6. You may want to use the corresponding Spacer form field type. |
The spacer parameter type provides a visual separator between parameter field elements. It is purely a visual aid and no parameter value is stored.
- type (mandatory) must be spacer.
- default (optional) (translatable) is a string which will be used instead of the <hr /> that is inserted by default.
Example XML parameter definition:
<param type="spacer" />
You can replace the basic horizontal line with a title which can be used to group parameters. For example,
<param type="spacer" default="Advanced parameters" />
Note that you can also include HTML markup but it must be encoded. For example, to put the text into bold you can use:
<param type="spacer" default="<b>Advanced parameters</b>" />