php - Magento subscribe form not showing -


i'm working on website , page doesn't show subscribe form...

i've added newsletter.xml:

    <!-- mage_newsletter -->     <reference name="newsletter">         <block type="newsletter/subscribe" name="news.subscribe" as="news.subscribe" template="newsletter/subscribe.phtml"/>     </reference>  </default> 

and news_home.phtml:

  <section id="news_and_fun_home" class="block small">     <div class="block-top"></div>     <div class="block">         <a href="https://plus.google.com/u/0/105681634975039284210/posts" target="_blank"><div class="follow-google"></div></a>         <?php echo $this->getchildhtml('news.subscribe'); ?>     </div>      <div class="block-bottom"></div> </section> 

i'm kinda new in magento... can explain me exactly?

also isnt working:

<?php echo $this->getlayout()->createblock('newsletter/subscribe')->settemplate('newsletter/subscribe.phtml')->tohtml(); ?> 

first of ,check news_home.phtml file reference name newsletter in xml file if,you show block then should call

<?php echo $this->getchildhtml("news.subscribe"); ?> in reference block newsletter (<reference name="newsletter">) 's phtml file


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -