I am using this code in my template file to display a static block in my left sidebar:
<?= $this->getLayout()->createBlock('cms/block')->setBlockId('leftSB1')->toHtml() ?>
I would like to exclude the block from one of my CMS pages. How do I do this?
I think it requires adding code to the ‘Layout Update XML’ section but I’m not sure what exactly.
Include the block in your layout instead:
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)