473,385 Members | 1,901 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes and contribute your articles to a community of 473,385 developers and data experts.

Add Custom tab in system configuration

Hello All,

Here, I am explaining you that how to add custom tab in system -> Configuration area.
Well, fist you need an extension that you’re going to build configuration for. If you’re new to Magento and you don’t know how to create an extension of your own, there’s a bunch of articles on this site about that, but my suggestion is to start on fresh extension, for testing.
And now on to the fun stuff. First, you need to add (or edit) your system.xml file.

Expand|Select|Wrap|Line Numbers
  1. <?xml version="1.0" encoding="UTF-8"?> 
  2. <config> 
  3. <tabs> 
  4. <inchoo translate="label" module="mymodule"> 
  5. <label>Inchoo Extensions</label> 
  6. <sort_order>100</sort_order> 
  7. </inchoo> 
  8. </tabs> 
  9. <sections> 
  10. <inchoo translate="label" module="mymodule"> 
  11. <label>Extension Options</label> 
  12. <tab>inchoo</tab> 
  13. <sort_order>1000</sort_order> 
  14. <show_in_default>1</show_in_default> 
  15. <show_in_website>1</show_in_website> 
  16. <show_in_store>1</show_in_store> 
  17. <groups> 
  18. <inchoo_group translate="label" module="mymodule"> 
  19. <label>My Extension Options</label> 
  20. <frontend_type>text</frontend_type> 
  21. <sort_order>1000</sort_order> 
  22. <show_in_default>1</show_in_default> 
  23. <show_in_website>1</show_in_website> 
  24. <show_in_store>1</show_in_store> 
  25. <fields> 
  26. <inchoo_input translate="label"> 
  27. <label>My Input Field: </label> 
  28. <comment>My Comment</comment> 
  29. <frontend_type>text</frontend_type> 
  30. <sort_order>20</sort_order> 
  31. <show_in_default>1</show_in_default> 
  32. <show_in_website>1</show_in_website> 
  33. <show_in_store>1</show_in_store> 
  34. </inchoo_input> 
  35. <inchoo_select translate="label"> 
  36. <label>My Dropdown: </label> 
  37. <comment>Source model provider Magento’s default Yes/No values</comment> 
  38. <frontend_type>select</frontend_type> 
  39. <sort_order>90</sort_order> 
  40. <show_in_default>1</show_in_default> 
  41. <show_in_website>1</show_in_website> 
  42. <show_in_store>1</show_in_store> 
  43. <source_model>adminhtml/system_config_source_yesno</source_model> 
  44. </inchoo_select> 
  45. </fields> 
  46. </inchoo_group> 
  47. </groups> 
  48. </inchoo> 
  49. </sections> 
  50. </config> 
  51.  
Then, in order to use Magento’s configuration section, you need to add (or edit) your extension’s config.xml file, and define models and helpers locations.

Expand|Select|Wrap|Line Numbers
  1. <config> 
  2. <modules> 
  3. <Inchoo_Mymodule> 
  4. <version>0.1.0</version> 
  5. </Inchoo_Mymodule> 
  6. </modules> 
  7. <global> 
  8. <models> 
  9. <mymodule> 
  10. <class>Inchoo_Mymodule_Model</class> 
  11. </mymodule> 
  12. </models> 
  13. <helpers> 
  14. <mymodule> 
  15. <class>Inchoo_Mymodule_Helper</class> 
  16. </mymodule> 
  17. </helpers> 
  18. </global> 
  19. </config> 
  20.  
And finally, you need to edit your extension’s config.xml file again, in order to avoid “Permission denied.” problem.
Insert this part of XML into inside “<config></config>” tags:
Expand|Select|Wrap|Line Numbers
  1. <adminhtml> 
  2. <acl> 
  3. <resources> 
  4. <all> 
  5. <title>Allow Everything</title> 
  6. </all> 
  7. <admin> 
  8. <children> 
  9. <system> 
  10. <children> 
  11. <config> 
  12. <children> 
  13. <inchoo> 
  14. <title>Inchoo - All</title> 
  15. </inchoo> 
  16. </children> 
  17. </config> 
  18. </children> 
  19. </system> 
  20. </children> 
  21. </admin> 
  22. </resources> 
  23. </acl> 
  24. </adminhtml> 
  25.  

And if you’ve done everything correctly you should see in admin panel syatem -> Configuration - >left side Inchoo Extension tab.


- Hope it will help you
Mar 23 '13 #1
1 4318
olidev
1
I read a solution to adding custom tab in magento on magenticians blog. They have great tutorial their. You should search on this on their website.

the problem might be here

Expand|Select|Wrap|Line Numbers
  1. <?xml version="1.0" encoding="UTF-8"?> 
  2. <config> 
  3. <tabs> 
  4. <inchoo translate="label" module="mymodule"> 
  5. <label>Inchoo Extensions</label> 
  6. <sort_order>100</sort_order> 
  7. </inchoo> 
  8. </tabs> 
  9. <sections> 
  10. <inchoo translate="label" module="mymodule"> 
  11. <label>Extension Options</label> 
  12. <tab>inchoo</tab> 
  13. <sort_order>1000</sort_order> 
  14. <show_in_default>1</show_in_default> 
  15. <show_in_website>1</show_in_website> 
  16. <show_in_store>1</show_in_store> 
  17. <groups> 
  18. <inchoo_group translate="label" module="mymodule"> 
  19. <label>My Extension Options</label> 
  20. <frontend_type>text</frontend_type> 
  21. <sort_order>1000</sort_order> 
  22. <show_in_default>1</show_in_default> 
  23. <show_in_website>1</show_in_website> 
  24. <show_in_store>1</show_in_store> 
  25. <fields> 
  26. <inchoo_input translate="label"> 
  27. <label>My Input Field: </label> 
  28. <comment>My Comment</comment> 
  29. <frontend_type>text</frontend_type> 
  30. <sort_order>20</sort_order> 
  31. <show_in_default>1</show_in_default> 
  32. <show_in_website>1</show_in_website> 
  33. <show_in_store>1</show_in_store> 
  34. </inchoo_input> 
  35. <inchoo_select translate="label"> 
  36. <label>My Dropdown: </label> 
  37. <comment>Source model provider Magento’s default Yes/No values</comment> 
  38. <frontend_type>select</frontend_type> 
  39. <sort_order>90</sort_order> 
  40. <show_in_default>1</show_in_default> 
  41. <show_in_website>1</show_in_website> 
  42. <show_in_store>1</show_in_store> 
  43. <source_model>adminhtml/system_config_source_yesno</source_model> 
  44. </inchoo_select> 
  45. </fields> 
  46. </inchoo_group> 
  47. </groups> 
  48. </inchoo> 
  49. </sections> 
  50. </config> 
May 30 '17 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: phillip | last post by:
This is interesting, I have attached my web.config file and the exception I have been logging. I created a library which provide data access to a database and a control system. The library is...
0
by: decker | last post by:
For a while now, I have been accustomed to defining my application's configuration values in the application configuration file in a custom section. In the implementation of my...
0
by: Cameron | last post by:
Hi All, I've just written a small program to use a locally hosted webservice which works fine. However I've also written a SOAPExtension for the client and I'm having trouble with the...
0
by: CoderHead | last post by:
I understand what's happening, but not why. I hope somebody else can help me out. I wrote a class library - DataAccess. This library can be included in any type of application but for now is...
8
by: Alberto | last post by:
Can you tell me how to read and modify a value in the app.config file using this class? Thank you very much
2
by: Randy Smith | last post by:
Hi ALL, I am getting this strange warning message, and I can't seem to find any solution for it. 'System.Configuration.CofigurationSettings.AppSettings is obsolete: it has been replaced by...
2
by: mark4asp | last post by:
In trying to get the C# conversion code for Head First Design Patterns to work I came accross a number of warnings. e.g. Warning Number: 10 Description: ...
3
by: Mike | last post by:
Hi I have problem as folow: Caught Exception: System.Configuration.ConfigurationErrorsException: An error occurred loading a configuration file: Request for the permission of type...
0
by: mohaaron | last post by:
I recently added a web deployment project to my vs.net 2005 solution to deploy a assocated web site project. When I originally added the web deployment project to the solution I had one other class...
8
by: Bill McCormick | last post by:
<!-- When deploying the service library project, the content of the config file must be added to the host's app.config file. System.Configuration does not support config files for libraries. --> ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.