To Call a Navigation in Footer (to call any block through xml files)
To call the navigation in footer
go to page.xml file,copy the topMenu block and place in the footer block
<block type="core/text_list" name="top.menu" as="topMenu" translate="label">
<label>Navigation Bar</label>
<block type="page/html_topmenu" name="catalog.topnav" template="page/html/topmenu.phtml"/>
</block>
now goto footer and call the block
<?php echo $this->getChildHtml('topMenu') ?>
or u can call cms page or static block too
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('footer_links')->toHtml() ?>
go to page.xml file,copy the topMenu block and place in the footer block
<block type="core/text_list" name="top.menu" as="topMenu" translate="label">
<label>Navigation Bar</label>
<block type="page/html_topmenu" name="catalog.topnav" template="page/html/topmenu.phtml"/>
</block>
now goto footer and call the block
<?php echo $this->getChildHtml('topMenu') ?>
or u can call cms page or static block too
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('footer_links')->toHtml() ?>
Comments
Post a Comment