title: Magento: Using different footers for different page layouts
body: <p>I've tried various tutorials but I can't get this to work.</p>
  
  <p>Basically, I want to have a different footer on my homepage.  I've setup two page layouts and have applied them to the cms pages fine.</p>
  
  <p>So in the homepage layout I refer to...</p>
  
  <pre><code>&lt;?php echo $this-&gt;getChildHtml('footer_home') ?&gt;
  </code></pre>
  
  <p>And on all the other pages this...</p>
  
  <pre><code>&lt;?php echo $this-&gt;getChildHtml('footer_alt') ?&gt;
  </code></pre>
  
  <p>Pretty simple!
  Then in the page xml I've amended the part which refers to the footer as follows...</p>
  
  <pre><code>            &lt;block type="page/html_footer" name="footer_alt" as="footer_alt" template="page/html/footer_alt.phtml"&gt;
              &lt;block type="page/html_wrapper" name="bottom.container" as="bottomContainer" translate="label"&gt;
                  &lt;label&gt;Page Footer&lt;/label&gt;
                  &lt;action method="setElementClass"&gt;&lt;value&gt;bottom-container&lt;/value&gt;&lt;/action&gt;
              &lt;/block&gt;
              &lt;block type="page/switch" name="store_switcher" as="store_switcher" template="page/switch/stores.phtml"/&gt;
              &lt;block type="page/template_links" name="footer_links" as="footer_links" template="page/template/links.phtml"/&gt;
          &lt;/block&gt;
  
  
            &lt;block type="page/html_footer" name="footer_home" as="footer_home" template="page/html/footer_home.phtml"&gt;
              &lt;block type="page/html_wrapper" name="bottom.container" as="bottomContainer" translate="label"&gt;
                  &lt;label&gt;Page Footer2&lt;/label&gt;
                  &lt;action method="setElementClass"&gt;&lt;value&gt;bottom-container&lt;/value&gt;&lt;/action&gt;
              &lt;/block&gt;
              &lt;block type="page/switch" name="store_switcher" as="store_switcher" template="page/switch/stores.phtml"/&gt;
              &lt;block type="page/template_links" name="footer_links" as="footer_links" template="page/template/links.phtml"/&gt;
          &lt;/block&gt;
  </code></pre>
  
  <p>I think this is where the problem lies. With the above all pages show the 'footer_alt' footer and I'm not sure why.</p>
  
  <p>I can confirm that 'page/html/footer_alt.phtml' and 'page/html/footer_home.phtml' are setup fine.</p>
  
  <p>I hope that makes sense.  Thanks.</p>