In our last article, we showed you how to use fieldsets to divide parameter settings in a Joomla 2.5 plugin. Within each feildset, you can use spacers to help divide the parameters even further.

Look at the following sample code:

<fieldset name="basic">
    <field name="text-options" type="spacer" default="Text Settings" label="&lt;b&gt;Text Settings&lt;/b&gt;" description="Text Settings" />
        <field name="alt-text"  type="text" default="" label="Alternative Text" description="Besides Hello World, you can specify other text here to print to the screen instead." />
    <field name="font-options" type="spacer" default="Font Settings" label="&lt;b&gt;Font Settings&lt;/b&gt;" description="Font Settings" />
        <field name="color" type="radio" default="black" description="Which color should the message be displayed in?" label="Color">
            <option value="black">black</option>
            <option value="red">red</option>
            <option value="blue">blue</option>
        </field>
        <field name="font-size" type="list" default="12" description="What size font should the message use?" label="Font size">
            <option value="8">8px</option>
            <option value="12">12px</option>
            <option value="16">16px</option>
        </field>
</fieldset>

Highlighted in red are two fields with a type of spacer, type="spacer". You can see in the screenshot below how spacers can be used to divide parameters.

using-spacers-in-fieldsets

Continued Education in Course 215: Joomla 2.5 Content Plugin Development
You are viewing Section 9: Using Spacers to separate plugin parameters in Joomla 2.5
Section 8: Using fieldsets to separate plugin paramenters in Joomla 2.5
Section 10: Inserting HTML and links in a Joomla 2.5 plugin settings page
Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address
Name

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

0 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!