Adding CMS Static Blocks to Magento Page Layouts

This will be short, but as you know phtml template files in Magento are stitched together using layout XML files. Sometimes we might have the need to include a static block we have created in the backend to one of they layout XML files. Here is the XML snip one would use to evoke the backend static block in a XML layout file.


    YOUR CMS BLOCK IDENTIFIER

When you create your static block in Magento’s backend, it will ask you to both give it a name and unique identifier. Replace both instances of “YOUR CMS BLOCK IDENTIFIER” in the above XML code snip with your own static blocks unique identifier name and you should be set.

Thanks!

Devin R. Olsen

Located in Portland Oregon. I like to teach, share and dabble deep into the digital dark arts of web and game development.

More Posts

Follow Me:
TwitterFacebookGoogle Plus