Magento module frontend template file

This section show how to retrieve the social links from the admin section. For retrieving the variable from the admin section use the following code.Also check the highlighted path of the following image.

magento module frontend template file

Please refer the tutorial which explains how to develop magento module admin section and frontent layout.in detail.

<h2>Social Links</h2>
<ul>
    <li>
        <a href="<?php echo Mage::getStoreConfig('addpeople_tab/addpeople_slinks/slinks_facebook');?>">Facebook</a>
    </li>
    <li>
        <a href="<?php echo Mage::getStoreConfig('addpeople_tab/addpeople_slinks/slinks_twitter');?>">Twitter</a>
    </li>
    <li>
        <a href="<?php echo Mage::getStoreConfig('addpeople_tab/addpeople_slinks/slinks_linkedin');?>">Linkedin</a>
    </li>
    <li>
        <a href="<?php echo Mage::getStoreConfig('addpeople_tab/addpeople_slinks/slinks_pinsterest');?>">pInterest</a>
    </li>
    <li>
        <a href="<?php echo Mage::getStoreConfig('addpeople_tab/addpeople_slinks/slinks_ping');?>">ping</a>
    </li>
    <li>
        <a href="<?php echo Mage::getStoreConfig('addpeople_tab/addpeople_slinks/slinks_instagram');?>">Instagram</a>
    </li>
    <li>
        <a href="<?php echo Mage::getStoreConfig('addpeople_tab/addpeople_slinks/slinks_googleplus');?>">Googleplus</a>
    </li>
</ul>

Share this Tutorial