Magento Top Links outside of magento : best thing with magento is you can call whole magento layout in any external website e.g if you are dealing with wordpress for phpbb , this following feature is phenominal . Here is a simple process create any php file and make sure your app/mage.php file path is correct here is the following code
$MageInclude = 'app/Mage.php';
require_once $MageInclude;
umask(0);
Mage::app();
Mage::getSingleton('core/session', array('name'=>'frontend'));
$block = Mage::getSingleton('core/layout');
$links = $block->createBlock('catalog/navigation')->setTemplate('catalog/navigation/top.phtml');
echo $links->toHtml();
enjoy 🙂

Be the first to comment.