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.
September 30th, 2008 in
Magento
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}}How a non- tecnical person can change the callout from admin side does any one know that ??
Abhi,
Unfortunately, if you want to change the callout stuff, you’ve got to get into the layout and template code.
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.
{{block type=”cms/block” block_id=”home-page-promo”}}
how to add action to that?
You are a life saver mate. Thanks.
Hey Pratthost,
Thank you for this one. We surely need to make a collection of this calls.
Thank you guys!
how can i call cms page frombutton click
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
milind,
Sorry, I’m not quite sure what you are asking..