Pascut
Pascut

Reputation: 3434

Magento - How to add multiple modules under the same label in Admin?

I created three modules and all of them can be configured through admin panel, Configuration. How can I set only one label for all these modules? I think that it's a system.xml setting:

First module:

<?xml version="1.0"?>
<config>
<tabs>
    <addthis translate="label" module="share">
        <label>Label</label>
        <sort_order>100</sort_order>
    </addthis>
</tabs>
<sections>
...

Second one:

<?xml version="1.0"?>
<config>
<tabs>
    <slider translate="label">
        <label>Label</label>
        <sort_order>100</sort_order>
    </slider>
</tabs>
<sections>
...

Third One:

<?xml version="1.0"?>
<config>
<tabs>
    <store translate="label">
        <label>Label</label>
        <sort_order>100</sort_order>
    </store>
</tabs>
<sections>
...

Anticipated thanks.

Upvotes: 0

Views: 1065

Answers (1)

Pascut
Pascut

Reputation: 3434

The solution was to set same tab for all modules:

<?xml version="1.0"?>
<config>
<tabs>
<name translate="label" module="share">
    <label>Label</label>
    <sort_order>100</sort_order>
</name>
</tabs>
...
<tab>name</tab>

Where the tab name is "name" for all modules and the Label can be diffrent for each module.

Thanks to fab for finding the solution.

Upvotes: 1

Related Questions