Magento – How to Add CMS Block by Name in CMS Page

blockscms

when we add a block in a CMS page for our multistore now it can only be done like this (I think)

{{widget type="cms/widget_block" template="cms/widget/static_block/default.phtml" block_id="55"}}

We would much rather use somethin like block_name to add blocks – a little more human readable. Can this be done?

Something like

{{widget type="cms/widget_block" template="cms/widget/static_block/default.phtml" block_name="my_handle_fot_this_block"}}

thx

Best Answer

Try with

{{widget type="cms/widget_block" template="cms/widget/static_block/default.phtml" block_id="block_identifier_here"}}

This should work because the block widgets calls ->load(block id) and the load method on the block model works with both ids and identifiers.

or

{{block type="cms/block" block_id="block_identifier here"}}