3

I installed an extension and the default section selected, when System -> Configuration is clicked, is that of this extension, instead of General (section) -> General (group).

I can't seem to find what configuration is doing this. If it's not configuration, what else is it?

EE 1.13

7

The first section to show up is the one with the lowest sort order. If you have the following code in your system.xml:

<?xml version="1.0"?>
<config>    
    <sections>
        <your_section translate="label" module="your_helper_alias">
            <label>Your Section</label>
            <tab>any</tab>
            <sort_order>10</sort_order>
            <show_in_default>1</show_in_default>
            <show_in_website>1</show_in_website>
            <show_in_store>1</show_in_store>
            <groups>
                [...]
            </groups>
        </your_section>
    </sections>
</config>

Then your section will be displayed first because "10" is the lowest sort_order of any section in the system (at least in a standard Magento shop).

  • Strange. This extension section has sort of 100, and it is placed below the GENERAL section, but it still shows up as the default section selected when I go to system config. – musicliftsme Jan 15 '14 at 20:09
  • If it's a free module, you could send it to me and I'll test that. – Andreas von Studnitz Jan 15 '14 at 20:14
  • Unfortunately, it's not mine to share.. Can you think of anything else? I will take another look the next chance I get, but I did not see spot obvious. – musicliftsme Jan 16 '14 at 14:58
  • I could not figure out why some arbitrary tab was being selected as the default one, but this should work. – musicliftsme Mar 17 '15 at 14:21
3

For anyone else looking for a definitive answer for this question, I had to set the sort order of my section to 200 to make Magento load the default general config first. I am new to Magento development and made the assumption that the sort order applied only to the sections in my tab. Hope this saves someone 30 mins of head scratching.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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