打开系统配置时,首先显示默认自定义模块部分

Zah*_*bas 3 configuration magento

我想在首先点击system-> configuration时显示自定义模块配置.

我已为部分设置了最高排序顺序但仍未显示.

我的system.xml代码看起来像

<tabs>
    <tourtab translate="label" module="customoptioncreater">
        <label>Tour Option Configuration</label>
        <sort_order>0</sort_order>
    </tourtab>
  </tabs>
  <sections>
    <toursection  translate="label" module="customoptioncreater">                    
    <label>Tour Option Configuration</label>
    <tab>tourtab</tab>
    <frontend_type>text</frontend_type>
    <sort_order>99999</sort_order>
    <show_in_default>1</show_in_default>
    <show_in_website>1</show_in_website>
    <show_in_store>1</show_in_store> 
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述

Sli*_*yyy 7

在您的代码中,您更改了tourtab的排序顺序.这将在第一个位置显示标签.

为了显示您想要的内容,请更改选项卡的排序顺序<section>.

<tabs>
    <tourtab translate="label" module="customoptioncreater">
        <label>Tour Option Configuration</label>
        <sort_order>0</sort_order>
    </tourtab>
  </tabs>
  <sections>
    <toursection  translate="label" module="customoptioncreater">                    
    <label>Tour Option Configuration</label>
    <tab>tourtab</tab>
    <frontend_type>text</frontend_type>
    <sort_order>0</sort_order>
    <show_in_default>1</show_in_default>
    <show_in_website>1</show_in_website>
    <show_in_store>1</show_in_store>
Run Code Online (Sandbox Code Playgroud)

现在,当您单击系统>配置时,甚至在Mage的默认常规选项卡及其部分之前,您的旅游选项配置选项卡将首先打开

注意:您可以将排序顺序更改为0或1.