Magento Tips & Tricks

Adding element with text to system configuration of Magento

System configuration in magento is the heart of your store. You can setup almost any aspect of website in configuration. This is also a place to store configuration settings of your extension. This article show how to add element with text.

You can use this element to add help section or insert information about your company.

Configuration element with text in magento

Configuration section / groups defined in app/code/community/[Company]/[Extension]/etc/system.xml. Lets assume that you already created system.xml. Now we will define new group and insert element with text in it.

As you can see we define custom frontend model in frontend_model tag. It is used to render element.
Renderer class should be stored in
app/code/community/[Company]/[Extension]/Block/Adminhtml/System/Config/Info.php.

That’s it. If you want to expand this section by default check this article

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.