Magento: Add Static Block to CMS Page

There is definitely nothing complicated about doing this. Static blocks are a great way to divide up different types of data blocks to make updating content easier.

There are just two simple steps to adding a static block to a cms page. First, create your static block. You will use the identifier to call it on the cms page. Let’s say, for this example, we call the identifier “home-page-promo”.

Once your static block is created, edit whatever cms page you would like this block to appear on, and simply put this code in right where you want it to show up:

{{block type="cms/block" block_id="home-page-promo"}}

And that’s all there is to it.

11 Comments

JoyOctober 21st, 2008 at 1:33 pm

You might be interested in how to make the callouts static blocks (see this forum thread) and mention that this same syntax works in the email templates. There is also another syntax you can use to reference blocks in the emails and in page templates. Here’s one that is in the shipment email:
{{block type='core/template' area='frontend' template='email/order/shipment/track.phtml' shipment=$shipment order=$order}}

AbhiNovember 6th, 2008 at 1:16 am

How a non- tecnical person can change the callout from admin side does any one know that ??

Josh PrattNovember 6th, 2008 at 8:57 am

Abhi,

Unfortunately, if you want to change the callout stuff, you’ve got to get into the layout and template code.

HarunDecember 19th, 2008 at 12:18 pm

I am new to Magento, can anybody help me in CMS tool of admin panel, and I have created a page with the entire required field and even able to view in preview page, which is coming absolutely perfect.

I used following page to create this page http://www.magentocommerce.com/knowledge-base/entry/how-do-i-create-and-edit-landing-pages

But I am not able to see this link in my website homepage and other pages.

srdjanFebruary 4th, 2009 at 1:51 pm

{{block type=”cms/block” block_id=”home-page-promo”}}

how to add action to that?

Damodar BashyalApril 15th, 2009 at 11:19 pm

You are a life saver mate. Thanks.

Tomislav BilicJuly 23rd, 2009 at 7:31 am

Hey Pratthost,
Thank you for this one. We surely need to make a collection of this calls. :)

VolodiaAugust 18th, 2009 at 4:32 am

Thank you guys!

johnFebruary 3rd, 2010 at 1:54 am

how can i call cms page frombutton click

milindFebruary 23rd, 2010 at 9:50 am

thank for u r guidlline but i have one more question is how to show the static block from admin side mean when ever user subscribe for newsletter i have to show message but on sepetate page so i have make one static block but i don’t understand how to call from it and show the message on that page

Josh PrattMarch 1st, 2010 at 10:49 pm

milind,

Sorry, I’m not quite sure what you are asking..

Leave a comment

Your comment