Magento Store - Remove Block using Update XML

后端 未结 2 503
太阳男子
太阳男子 2020-12-21 11:53

I am using this code in my template file to display a static block in my left sidebar:

getLayout()->createBlock(\'cms/block\')->setBlo         


        
2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-21 12:28

    Include the block in your layout instead:

    
      
        
          leftSB1
        
      
    
    

    And then $this->getChildHtml('leftSB1') in your sidebar, if you're not including children automatically.

    (and then remove it from the particular page as in the previous answer)

提交回复
热议问题