Fluid

Magento Commerce Tips & Tricks

Add a CMS Static Block to a Layout

I was trying to copy the way they did it with cms_footer_links in footer.phtml and it wasn’t working. Below is the proper method.

No: <?php echo $this->getChildHtml(‘footer_bottom_text’) ?>

Yes: <?php echo $this->getLayout()->createBlock(‘cms/block’)->setBlockId(‘footer_bottom_text’)->toHtml() ?>

MySQL Import Errors

Open the .sql Export

— add this above the first line: SET FOREIGN_KEY_CHECKS = 0;

— add this below the last line: SET FOREIGN_KEY_CHECKS = 1;

Exit mobile version