![]() |
Languages: |
English |
In Joomla! 1.5, form fields were parameters. For that version, you may want to use the corresponding Spacer parameter type. |
The spacer form field type provides a visual separator between parameter field elements. It is purely a visual aid and no field value is stored.
Example XML field definition:
<field type="spacer" name="myspacer" hr="true" />
You can replace the basic horizontal line with a title which can be used to group parameters. For example,
<field type="spacer" name="myspacer" label="Advanced parameters" />
You can also place translatable text into the label attribute:
<field type="spacer" name="myspacer" class="text" label="PLG_TINY_FIELD_NAME_EXTENDED_LABEL" />
Note that you can also include HTML markup but it must be encoded. For example, to put the text into bold you can use:
<field type="spacer" name="myspacer" label="<b>Advanced parameters</b>" />
You cannot combine the hr and label attributes. To define a spacer with both a horizontal rule and a label, use an encoded <hr/>
in the label attribute:
<field type="spacer" name="myspacer" label="<hr/>More parameters" />