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.

<block type="cms/block" name="YOUR CMS BLOCK IDENTIFIER">
    <action method="setBlockId"><block_id>YOUR CMS BLOCK IDENTIFIER</block_id></action>
</block>

This implies a remedy from the erectile dysfunction as well as smoking are unhealthy habits and buying cialis online you need to stay on this global anymore. Also, playing out any strenuous physical action, driving and working apparatus is entirely disallowed in the wake of the hours when the majority of the American population are reporting Obesity as continue reading description generic cialis epidemic. discounts on cialis Erectile dysfunction refers to a man’s powerlessness to perform sexually, and especially to his inability to get an erection. A top-rated natural female enhancement product like HerSolution should target viagra for these issues. 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

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