To get started, you’ll want to create a new module XML file similar to this: /app/etc/modules/MyMods_All.xml. Put the following code in that file:
When you have saved that file, create the directory structure for your new module like this:
Now, create this file: /app/code/local/MyMods/ExtraConfig/etc/config.xml and put the following code within it:
Next, create this file: /app/code/local/MyMods/ExtraConfig/etc/system.xml and put the following code within it:
When you have all of that done, login to the admin of your site. Browse to System→Configuration and on the left at the bottom, click on “Advanced”. You should see your new module on this list. Then, click on “Catalog” on the left, and you should see your new “Backend” configuration there. Populate that field with the instructions, and save it.
Now, open your elements.phtml file that you edited from the previous post (or open ANY template file that you want this information displayed). Remove the instructions, and replace them with this:
- <?php echo Mage::getStoreConfig('catalog/backend/short_desc_instructions') ?>
Once that is done - you should be all set! That’s all there is to it. No database work necessary - Magento covers all that for you. If you want a better look at how to setup the system.xml file, there are loads of examples right before your eyes. Simply go into any of Magento’s core modules (/app/code/core/Mage/) and open up their etc/system.xml file and have a look. You’ll easily figure out how to create different elements and how and where you can place them in different areas throughout the admin section.