How to create Static Block for Magento Custom module

Create your own Static Block

Go to Magento Admin Panel >> CMS >> Static Blocks:

Create block: E.g create "Did you know?" block

-- Navigate to "CMS->Static Blocks"http://static.joomlart.com/ima…atic_block.png
-- Click "Add new Block"

-- Fill the form and configure with text in italic below and click "Save Block" button:

  • Title: Right module
  • Identifier: right_block
  • Store View: All Store Views
  • Status: Enable
  • Content: fill in all syntax quoted as you would like.

-- Go to CMS > Static Block > Click on the Homepage (home) row to edit the current homepage.http://static.joomlart.com/ima…anage_page.png

  • In "General Information" tab, fill "Content" field with syntax quoted.
  • To push new static block, fill in "Layout Update XML" field in Design tab with syntax quoted below for example:

HTML Code:

<reference name="right">            
            <block type="cms/block" name="jmtabs" before="-">
                <action method="staticblock">
                    <title>[B][COLOR=Red]New block[/COLOR][/B]</title>
                    <identifier>[B][COLOR=Red]new_block[/COLOR][/B]</identifier>
                </action>
                
            </block>
      </reference>

Refresh your cache if needed (in System > Cache Management > Save cache settings). Refresh your homepage to see the change applied.

This question is now closed

Written By

Comments