Placing a Block in a CMS Page Sidebar

You can use a layout update to place a block in the right or left sidebar of a specific CMS page. With a few simple changes to the code, you can position the block in either sidebar, and control its position in relation to other blocks in the column.

To place a block in a sidebar:

  1. From the Admin panel, select CMS > Pages > Manage Content.
  2. Click to open the CMS page. Then, in the Page Information panel on the left, select Design.
  3. In the Layout Update XML box, enter the code for the right or left sidebar, as shown in example. Change the reference name to identify either the “left” or “right” sidebar, and change the block_id to the identifer of the block to be placed.

    Code for CMS Block in Sidebar

    <reference name="right">
    <block type="cms/block" name="right.permanent.callout">
    <action method="setBlockId"><block_id>your-block</block_id></action>
    </block>
    </reference>
  4. When complete, click the Save Page button.
Layout Update for Sidebar Block
Layout Update for Sidebar Block

Discussion:

RSS: New Article posts

Explore the Knowledge Base