Magento Forum - UK Magento Forum (Unofficial)

An unofficial but dedicated Magento Forum for Magento Users, Designers and Developers

How to call static block in Magento CMS page

A forum for web designers working with the Magento system.

How to call static block in Magento CMS page

Postby bruno.adodis » Tue May 04, 2010 2:19 pm

Sometimes it will be necessary to include some banners or promotional messages which needs to edited frequnetly. This can be done by calling a static block in CMS pages. This will be the best practice if the CMS page contains some HTML tags. This will help in editing the static block content without much difficulty.

The static blocks can be included in CMS page by:

{{block type="cms/block" block_id="my_block" template="cms/content.phtml"}}

Non-static block can be called in cms page by:

{{block type="” template="block template"}}
E-Commerce Website Development, E Commerce Development Company
Posts: 15
Joined: Wed Apr 28, 2010 6:41 am

Re: How to call static block in Magento CMS page

Postby edmondscommerce » Wed May 05, 2010 10:26 am

cool, these little posts are informative, however what would be great is if you could get involved in the discussion and actually answer some questions ;)
User avatar
Posts: 1157
Joined: Fri Sep 11, 2009 8:55 am
Location: UK

Re: How to call static block in Magento CMS page

Postby fishpig » Sun May 16, 2010 11:43 pm

Static blocks are great because they provide a way for the clients to modify content without needing FTP access. It also stops them from destroying whole templates as they only have access to small snippets of code.

The method you described above allows you to access static blocks but there are loads of other ways to access them.

I wrote a post about accessing static blocks that might be useful to someone: ... n-magento/
Posts: 35
Joined: Mon Apr 26, 2010 5:53 pm

Return to Magento Designers