title: Magento - Remove blocks from footer on CMS page
body: <p>In my magento store I have the recently viewed products block and newsletter signup block inside my footer as shown with the below code all working ok:</p>
  
  <p>footer.phtml</p>
  
  <pre><code>&lt;?php echo $this-&gt;getLayout()-&gt;createBlock('reports/product_viewed')-&gt;setTemplate('reports/product_viewed.phtml')-&gt;toHtml(); ?&gt;
  
  &lt;?php echo $this-&gt;getChildHtml('footer.newsletter') ?&gt;
  </code></pre>
  
  <p>On one of my CMS pages i want to hide these 2 blocks. In the design admin tab for my CMS page i have already hidden the breadcrumbs with the below in the <code>Custom Layout Update XML</code> section, again working fine:</p>
  
  <pre><code>&lt;reference name="root"&gt;
      &lt;remove name="breadcrumbs" /&gt;
  &lt;/reference&gt;
  </code></pre>
  
  <p>I cannot seem to come up with the correct code to remove these blocks. I have tried several lines of code for each block:</p>
  
  <pre><code>&lt;reference name="footer"&gt;
      &lt;remove name="reports.product.viewed" /&gt;
  &lt;/reference&gt;
  
  &lt;reference name="root"&gt;
      &lt;remove name="footer.reports.product.viewed" /&gt;
  &lt;/reference&gt;
  
  &lt;reference name="footer"&gt;
      &lt;action method="unsetChild"&gt;&lt;alias&gt;reports.product.viewed&lt;/alias&gt;&lt;/action&gt;
  &lt;/reference&gt;
  </code></pre>