I'm having trouble displaying links within my navigation from a static block.
I have included the following code at the top of my "home.phtml" file:
<?php $storeId = Mage::app()->getStore()->getStoreId();
if($storeId == '14')
{
echo $this->getLayout()->createBlock('cms/block')->setBlockId('home-center-contact')->toHtml();
echo $this->getLayout()->createBlock('cms/block')->setBlockId('top_menu_beacon')->toHtml();
echo $this->getLayout()->createBlock('cms/block')->setBlockId('footer_links_beacon')->toHtml();
}
if($storeId == '19')
{
echo $this->getLayout()->createBlock('cms/block')->setBlockId('home-center-contact')->toHtml();
echo $this->getLayout()->createBlock('cms/block')->setBlockId('top_menu_cashino')->toHtml();
echo $this->getLayout()->createBlock('cms/block')->setBlockId('footer_links_cashino')->toHtml();
}
if($storeId == '16')
{
echo $this->getLayout()->createBlock('cms/block')->setBlockId('home-center-contact')->toHtml();
echo $this->getLayout()->createBlock('cms/block')->setBlockId('top_menu_tanexpress')->toHtml();
echo $this->getLayout()->createBlock('cms/block')->setBlockId('footer_links_tanexpress')->toHtml();
}
if($storeId == '18')
{
echo $this->getLayout()->createBlock('cms/block')->setBlockId('home-center-contact')->toHtml();
echo $this->getLayout()->createBlock('cms/block')->setBlockId('top_menu_merkur')->toHtml();
echo $this->getLayout()->createBlock('cms/block')->setBlockId('footer_links_merkur')->toHtml();
}
?>