Create an Static Block from your CMS admin tab and show it in your theme.
In my case I wanted to call a Static Block from my theme to show up in the sidebar.
I edited my theme file called 2columns-left.phtml and then added the following code.
Please notice you need to replace the YourBlockId with your own Static Block Id.
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('YourBlockId')->toHtml() ?>
Code language: HTML, XML (xml)
Nicole
Quicoto
a simple question – when you create a Block ID, is it the http address where the system finds the block -photo?
Nicole
Nicole
I have found it already, thanks!
quicoto
Great.
I was going to say: A Static Block can not be surfed like a Page. So there is no address 😛
Regards 😉
Nicole
ok:)
Will
Cant get translations to work with this method