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

2 Answers 2

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).

4
  • 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.
    – laketuna
    Jan 15, 2014 at 20:09
  • If it's a free module, you could send it to me and I'll test that. Jan 15, 2014 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.
    – laketuna
    Jan 16, 2014 at 14:58
  • I could not figure out why some arbitrary tab was being selected as the default one, but this should work.
    – laketuna
    Mar 17, 2015 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.

0

Your Answer

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

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