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.

This entry was posted in Magento. Bookmark the permalink.

12 Responses to Magento: Add Static Block to CMS Page

  1. Joy says:

    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}}

  2. Abhi says:

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

  3. Josh Pratt says:

    Abhi,

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

  4. Harun says:

    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.

  5. srdjan says:

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

    how to add action to that?

  6. You are a life saver mate. Thanks.

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

  8. Volodia says:

    Thank you guys!

  9. john says:

    how can i call cms page frombutton click

  10. milind says:

    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

  11. Pingback: Magento Ecommerce: An Overview and Some Useful Hints « Rosslyn Digital

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">