Magento自定义模块配置组未折叠

Magento自定义模块配置组未折叠,magento,Magento,我正在为Magento开发一个自定义模块,并为它创建了一个配置页面,其中包含多组字段。到目前为止,它还可以正常工作,但我知道默认情况下应该折叠这些组,但我的组在加载页面时都会展开,只有在用户折叠它们时才会折叠 My system.xml文件: <config> <tabs> <mymoduletab translate="label" module="mymodule"> <labe

我正在为Magento开发一个自定义模块,并为它创建了一个配置页面,其中包含多组字段。到目前为止,它还可以正常工作,但我知道默认情况下应该折叠这些组,但我的组在加载页面时都会展开,只有在用户折叠它们时才会折叠

My system.xml文件:

<config>
    <tabs>
            <mymoduletab translate="label" module="mymodule">
                    <label>My Module</label>
                    <sort_order>400</sort_order>
            </mymoduletab>
    </tabs>
    <sections>
            <mymoduleoptions translate="label" module="mymodule">
                    <label>My Module Options</label>
                    <tab>mymoduletab</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>
                            <basicoptions translate="label">
                                    <label>Basic Options</label>
                                    <frontend_type>text</frontend_type>
                                    <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>
                                    <fields>...

我的模块
400
我的模块选项
mymoduletab
10
1.
1.
1.
基本选择
文本
10
1.
1.
1.
...

有人能指出我做错了什么吗?谢谢我能找到的Magento开发文档非常稀少。

显然,在保存配置值时,组的状态会保存在数据库中。如果在组打开的情况下保存这些值,则默认情况下,即使在注销和重新登录之后,这些值也会打开。我找不到它们的保存位置。

实际上,您只需将以下内容添加到要打开的组中即可:

<expanded>1</expanded>
1