J1.5:Spacer parameter type
From Joomla! Documentation
(Difference between revisions)
m (Fixed category mess) |
Infograf768 (Talk | contribs) |
||
| Line 14: | Line 14: | ||
Note that you can also include HTML markup but it must be encoded. For example, to put the text into bold you can use: | Note that you can also include HTML markup but it must be encoded. For example, to put the text into bold you can use: | ||
<source lang="xml"><param type="spacer" default="<b>Advanced parameters</b>" /></source> | <source lang="xml"><param type="spacer" default="<b>Advanced parameters</b>" /></source> | ||
| + | |||
| + | '''Changes in Joomla! 1.6''' | ||
| + | |||
| + | Typical hr spacer: | ||
| + | |||
| + | <source lang="xml"><field name="spacer1" type="spacer" | ||
| + | hr="true" | ||
| + | /></source> | ||
| + | |||
| + | Typical text spacer: | ||
| + | |||
| + | <source lang="xml"><field name="spacer" type="spacer" class="text" | ||
| + | label="PLG_TINY_FIELD_NAME_EXTENDED_LABEL" | ||
| + | /></source> | ||
| + | |||
| + | and add the JText key into the extension ini file. | ||
| + | |||
<noinclude> | <noinclude> | ||
=== See also === | === See also === | ||
* [[Standard form field types|Table of all standard form field types]] | * [[Standard form field types|Table of all standard form field types]] | ||
[[Category:Standard form field types]]</noinclude> | [[Category:Standard form field types]]</noinclude> | ||
Revision as of 09:13, 8 March 2011
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 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>" />Changes in Joomla! 1.6
Typical hr spacer:
<field name="spacer1" type="spacer" hr="true" />
Typical text spacer:
<field name="spacer" type="spacer" class="text" label="PLG_TINY_FIELD_NAME_EXTENDED_LABEL" />
and add the JText key into the extension ini file.
