Reputation: 4574
I am trying to add multiple section under same tab in magento admin panel. I added this in system.xml file. It works fine for one section but when i add another it display the section but after click it throw 404 not fount error
.
I am using the below code :
<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 ) This is my mss section this works fine
2) This is section which i am trying to with name sqlite (when i click on this section this throws 404 error)
Please help me how to add new section in tab or where i am doing wrong.
Upvotes: 1
Views: 1603
Reputation: 11
Please change adminhtml.xml file in your module as shown below :
<?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>
And then clear your magento cache and session.
Upvotes: 1
Reputation: 110
Please check your modules config.xml. In it check if this section exists if not add it
<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>
This should solve 404 error.
Upvotes: 0