2014-11-13 3 views
1

Я пытаюсь добавить несколько разделов на одной вкладке в панели администратора magento. Я добавил это в файл system.xml. Он отлично работает для одного раздела, но когда я добавляю другой, он отображает раздел, но после щелчка на нем выкидывает 404 not fount error.Как добавить несколько разделов под одной вкладкой magento admin panel?

Я использую следующий код:

<tabs> 
    <mss translate="label" module="sqlite"> 
     <label>Mss Extensions</label> 
     <sort_order>100</sort_order> 
    </mss> 
</tabs> 
<sections> 
     <mss translate="label" module="sqlite"> 
      <label>Auto Indexing</label> 
      <tab>mss</tab> 
      <sort_order>1000</sort_order> 
      <show_in_default>1</show_in_default> 
      <show_in_website>1</show_in_website> 
      <show_in_store>1</show_in_store> 


     <groups> 
      <mss_group translate="label" module="sqlite"> 
       <label>Indexing 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> 
        <mss_input translate="label"> 
         <label>Auto Products</label> 
         <frontend_type>select</frontend_type> 
         <sort_order>90</sort_order> 
         <show_in_default>1</show_in_default> 
         <show_in_website>1</show_in_website> 
         <show_in_store>1</show_in_store> 
         <source_model>adminhtml/system_config_source_yesno</source_model> 
        </mss_input> 

       </fields> 
      </mss_group> 
     </groups> 
    </mss> 
</sections> 
<sections 

<sqlite translate="label" module="sqlite"> 
      <label>Auto Indexing</label> 
      <tab>mss</tab> 
      <sort_order>100</sort_order> 
      <show_in_default>1</show_in_default> 
      <show_in_website>1</show_in_website> 
      <show_in_store>1</show_in_store> 

     <groups> 
      <sqlite_group translate="label" module="sqlite"> 
       <label>Sqlite Process</label> 
       <frontend_type>text</frontend_type> 
       <sort_order>1000</sort_order> 
       <show_in_default>1</show_in_default> 
       <show_in_website>1</show_in_website> 
       <show_in_store>1</show_in_store> 

       <fields> 
        <sqlite_input translate="label"> 
         <label>Sqlite Product</label> 
         <frontend_type>select</frontend_type> 
         <sort_order>90</sort_order> 
         <show_in_default>1</show_in_default> 
         <show_in_website>1</show_in_website> 
         <show_in_store>1</show_in_store> 
         <source_model>adminhtml/system_config_source_yesno</source_model> 
        </sqlite_input> 

       </fields> 
      </sqlite_group> 
     </groups> 
    </sqlite> 
</sections> 

1) Это мой раздел гпп это работает отлично

enter image description here

2) Это раздел, в котором я пытаюсь с именем sqlite (когда я нажимаю на этот раздел, это вызывает ошибку 404)

enter image description here

Пожалуйста, помогите мне, как добавить новый раздел на вкладке или где я делаю неправильно.

ответ

0

Проверьте свои модули config.xml. В нем проверьте, существует ли этот раздел, если он не добавлен,

<adminhtml> 
     <acl> 
      <resources> 
       <all> 
        <title>Allow Everything</title> 
       </all> 
       <admin> 
        <children> 
         <system> 
          <children> 
           <config> 
            <children> 
             <mss> 
              <title>Mss - All</title> 
             </mss> 
            </children> 
           </config> 
          </children> 
         </system> 
        </children> 
       </admin> 
      </resources> 
     </acl> 
</adminhtml> 

Это должно решить ошибку 404.

1

Пожалуйста, измените adminhtml.xml файл в модуле, как показано ниже:

<?xml version="1.0"?> 
    <config> 
     <acl> 
      <resources> 
       <admin> 
        <children> 
         <system> 
          <children> 
           <config> 
            <children> 
             <mss translate="title" module="sqlite"> 
              <title>Auto Indexing</title> 
              <sort_order>0</sort_order> 
             </mss> 
             <sqlite translate="title" module="sqlite"> 
              <title>Auto Indexing</title> 
              <sort_order>1</sort_order> 
             </sqlite> 
            </children> 
           </config> 
          </children> 
         </system> 
        </children> 
       </admin> 
      </resources> 
     </acl> 
    </config> 

А затем очистить кэш Magento и сеанс.

Смежные вопросы