Custom fields magento admin module

The magento module development custom fields are declared in the system.xml file. The following code adds the contact details tab in the System->Configuration section magento admin area.Inside the tab I have added the custom fields for enter the social media links as show below.

develop-admin-module-magento

<?xml version="1.0"?>
<config>
    <tabs>
        <addpeople_config translate="label" module="addpeople_slinks">
            <label>Contact Details</label>
            <sort_order>100</sort_order>
        </addpeople_config>
    </tabs>
    <sections>
        <addpeople_tab translate="label" module="addpeople_slinks">
            <label>Social Links</label>
            <tab>addpeople_config</tab>
            <sort_order>1000</sort_order>
            <show_in_default>1</show_in_default>
            <show_in_website>0</show_in_website>
            <show_in_store>0</show_in_store>

            <groups>
                <addpeople_slinks translate="label" module="addpeople_slinks">
                    <label>Social Links</label>
                    <frontend_type>text</frontend_type>
                    <sort_order>1000</sort_order>
                    <show_in_default>1</show_in_default>
                    <show_in_website>0</show_in_website>
                    <show_in_store>0</show_in_store>

                    <fields>
                        <slinks_facebook translate="label">
                            <label>Facebook</label>
                            <comment>Add facebook link</comment>
                            <frontend_type>text</frontend_type>
                            <sort_order>10</sort_order>
                            <show_in_default>1</show_in_default>
                            <show_in_website>0</show_in_website>
                            <show_in_store>0</show_in_store>
                        </slinks_facebook>
                        <slinks_twitter translate="label">
                            <label>Twitter</label>
                            <comment>Add twitter link</comment>
                            <frontend_type>text</frontend_type>
                            <sort_order>20</sort_order>
                            <show_in_default>1</show_in_default>
                            <show_in_website>0</show_in_website>
                            <show_in_store>0</show_in_store>
                        </slinks_twitter>
                        <slinks_linkedin translate="label">
                            <label>LinkedIn</label>
                            <comment>Add linkedIn link</comment>
                            <frontend_type>text</frontend_type>
                            <sort_order>30</sort_order>
                            <show_in_default>1</show_in_default>
                            <show_in_website>0</show_in_website>
                            <show_in_store>0</show_in_store>
                        </slinks_linkedin>
                        <slinks_pinsterest translate="label">
                            <label>pInterest</label>
                            <comment>Add pinterest link</comment>
                            <frontend_type>text</frontend_type>
                            <sort_order>31</sort_order>
                            <show_in_default>1</show_in_default>
                            <show_in_website>0</show_in_website>
                            <show_in_store>0</show_in_store>
                        </slinks_pinsterest>
                        <slinks_ping translate="label">
                            <label>ping</label>
                            <comment>Add ping link</comment>
                            <frontend_type>text</frontend_type>
                            <sort_order>40</sort_order>
                            <show_in_default>1</show_in_default>
                            <show_in_website>0</show_in_website>
                            <show_in_store>0</show_in_store>
                        </slinks_ping>
                        <slinks_instagram translate="label">
                            <label>Instagram</label>
                            <comment>Add instagram link</comment>
                            <frontend_type>text</frontend_type>
                            <sort_order>50</sort_order>
                            <show_in_default>1</show_in_default>
                            <show_in_website>0</show_in_website>
                            <show_in_store>0</show_in_store>
                        </slinks_instagram>
                        <slinks_googleplus translate="label">
                            <label>Googleplus</label>
                            <comment>Add googleplus link</comment>
                            <frontend_type>text</frontend_type>
                            <sort_order>50</sort_order>
                            <show_in_default>1</show_in_default>
                            <show_in_website>0</show_in_website>
                            <show_in_store>0</show_in_store>
                        </slinks_googleplus>
                    </fields>
                </addpeople_slinks>
                <addpeople_slinks_handle translate="label" module="addpeople_slinks">
                    <label>Get in touch</label>
                    <frontend_type>text</frontend_type>
                    <sort_order>2000</sort_order>
                    <show_in_default>1</show_in_default>
                    <show_in_website>0</show_in_website>
                    <show_in_store>0</show_in_store>

                    <fields>
                        <slinks_get_touch translate="label">
                            <label>Get in touch Text</label>
                            <comment>Please add get contact text</comment>
                            <frontend_type>textarea</frontend_type>
                            <sort_order>10</sort_order>
                            <show_in_default>1</show_in_default>
                            <show_in_website>0</show_in_website>
                            <show_in_store>0</show_in_store>
                        </slinks_get_touch>

                    </fields>
                </addpeople_slinks_handle>

            </groups>
        </addpeople_tab>
    </sections>
</config>

Share this Tutorial