Friday, May 21, 2010

Magento: How to hide unwanted blocks in the sidebar on some pages using Layout Update XML?

do you have any idea on how to do this?

1 comment:

  1. You can hide some blocks in the sidebar by using
    Layout Update XML feature in the CMS backend.

    On every product, category and static page, you can hide some unwanted blocks in the sidebar through
    Design → Page Layout → Layout Update XML and place a code for example, this one successfully disables Newsletter blocks in the left sidebar:



    right.newsletter



    The reference name can be “left” or “right” depending on what Layout the page is using and the example above uses a layout with “2 columns with left bar”

    notice also the block name which is right.newsletter between the tag.
    it is important also that you know what name of the block you are going to hide, you can easily find the
    block names on xml files in the \app\design\frontend\default\Vilebrequin_USA\layout

    ReplyDelete