Add Magento static blocks to your page easily! Simply copy this line of code below where you want the static block to appear and change the ‘identifier’ to the identifier of the static block you created. That’s it!
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('identifier')->toHtml() ?>
Is there a reason I shouldn’t just use this method?
Hi. Can I have one question? There are possibility to use static block in product description? When I put
to them I see only this text, no block content 🙁
I found solution it is necessary only add this two lines in the proper place into app/code/core/Mage/Catalog/Helper/Output.php to method productAttribute()
i have static footer blocks with relevant SEO text for certain pages. It was working fine and all of a sudden all the static footer blocks disappeared. I cant seem to get it back. This is the code U used:
I added this code in the layout update XML section in the design tab of the homepage.
Any help is appreciated
I use Free CMS module that is very useful. You can see the demo here: http://demo.hello-magento.com/freecms/furniture.html
where in the page?
Tiny post, GREAT solution!! Thank you Richard!
This was really helpful! Thanks for posting it. (You probably already know how hard it is to find concise Magento solutions like this!)
This is EXACTLY what I was looking for! Great solution. Thank You Richard!
Hi Richard thanks very much for this. It is a clear and straight to the point instruction (unlike many other magento guides out there)
Could you please tell me what I would need to do to add something just above the footer of all pages (I would like to have a paypal verified image)
I am new to magento and still learning coding, it is quite confusing.
does this work if it’s not a static cms page would it work on a product category page and how do you access it?
I’ve been working on M for about a week and am still trying to piece together how everything works. Thank you so much for your assistance and sharing.
Hi Richard, great post!! got a bit of a headache tho 🙁
how can you make CMS block appear above a category page layout?
For example: if you have 2columns-left set as your category page layout how can i make a CMS block appear above this layout? and also be able to add a different block to each category page via the admin panel?
here is my problem http://gogglefirm.com/snow.html
as you can see i have the static block in the page but i want it to clear the left col and main col.
it is very helpful for us
thanks for the help richard.
Hi, I have searched for solutions everywhere, but it was too hard or time consuming. And i found this magento extension to show categories where you want as block.
Here is a link: http://www.storefrontconsulting.com/software/featured-categories-magento-extension.html
Thanks for this Richard! Saved my time!
can u explain me how to move menu from top to left or right
and how to pages in menu?
Thanks a lot, mate.
Saved me a lot of trouble 🙂
Thanks Richard, I can’t count the number of attempts I have made using various code from more than I can count sites/tutorials and yours is the first that has worked . I finally have additional content added to my site
Hi richard, thanks for the help and it is a good solutions.
i am new in magento and learn all things, but i have question
1) i create one “Education price” name page
2) i Create a Static Block Name “Prices” in that static block i write some content and also “click here” link
3) i want to show the “Education price” in click of “click here” link
so how can i do that plz help me
Exactly what i required, cheers
thanks, good tutorial 🙂
I am totaly new in majento developing!!!
Now, Ia have started to understand the admin panel configuration as well client side effect.
I feel good to see all of u here for help me!!!
you rock man, thx.
tnx man, it’s a small code but big help :]
nice post ,quick solution
thank you very much! big help