4

When creating Joomla modules, I use something like this in my XML manifest file to add parameters:

<config>
        <fields name="params">
            <fieldset name="options" label="My Parameters">
                <field
                    name="my_field"
                    type="text"
                    label="Example label"
                    description="Example description"
                    default="Default value">
                </field>
            </fieldset>
        </fields>
</config>

This creates a new tab called "My Parameters" in the module editor, where my fields are displayed.

But how can I add fields directly to the main tab ("Module"-tab)?

1 Answer 1

11

Use <fieldset name="basic"> instead of <fieldset name="options" label="My Parameters">

Then name of fieldset must be basic otherwise it will create a new tab.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.