2

I am trying to update the layout of the right sidebar on a CMS page, and the block is doubling, I have created a Static Block and then called using the following method:

<reference name="right">
<block type="cms/block" name="right.permanent.callout">
<action method="setBlockId"><block_id>about-right</block_id></action>
</block>
</reference>

After creating this, the Static Block doubled the content on the page, as you can see in this link

Does anyone know what might be causing this?

This is the code related to the sidebar in my local.xml:

    <remove name="catalog.compare.sidebar"/>
    <remove name="left.reports.product.viewed" />-->
    <remove name="right.reports.product.viewed" />
    <remove name="right.reports.product.compared"/>
    <remove name="wishlist_sidebar"/>
    <remove name="tags_popular"/>
    <remove name="right.poll"/>
    <remove name="paypal.partner.right.logo"/>
    <remove name="reorder"/>

    <!--<remove name="right.permanent.callout"/>-->
    <remove name="left.permanent.callout"/>

Many thanks in advance,

3
  • add <remove name="right.permanent.callout /> in your local.xml file and tell me what happend in your site? Commented Aug 26, 2014 at 11:02
  • Can you please change the name of the block to something else? Then do what @programmer_rkt said. Commented Aug 26, 2014 at 11:29
  • By removing {<remove name="right.permanent.callout />} it completely removed the static block. Commented Aug 26, 2014 at 12:26

1 Answer 1

3

The problem is your block name (it is already used by another block). The following works perfectly:

<reference name="right">
    <block type="cms/block" name="about.right">
        <action method="setBlockId"><block_id>about-right</block_id></action>
    </block>
</reference>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.