Magento 1.9 – Inserting Static Block in Sidebar

magento-1.9static-block

I am trying to create my own navigation bars by creating the link in a static block then inserting the block into the left sidebar.
You can see one of my pages here: http://hi-schoolworld.com/pharmacy
The problem seems to be with the code in my local.xml file.
If I have this tag:
then nothing shows up but if I comment it out then the block displays twice…
I can't think of anywhere else I would have referenced the block.
I've uploaded a screenshot of what I'm talking about here: http://hi-schoolworld.com/example.jpg

Thank you in advance for your help!

Best Answer

create local.xml at app/design/frontend/yourpackage/yourtemplate/layout/

then you need call cms block from using xml

<default>
    <reference name="left">
        <block type="cms/block" name="somenameofcmsblok" >
            <!--
                The content of this block is taken from the database by its block_id.
                You can manage it in admin CMS -> Static Blocks
            -->
            <action method="setBlockId"><block_id>youblockcode</block_id></action>
        </block>
     </reference>
</default>

Related Topic