1

Good morning, it seems my footer content has disappeared and I don't know where to. I want to put the newsletter module in there, but it completely vanished. here's the code that I added temporarily which is supposed to make it show up. It's not working. (I found that code off of Google, but most results seem to be 2009 or 2010)

{{block type="newsletter/subscribe" name="footer.newsletter" template="newsletter/subscribe.phtml"}}

for the static block and

{{block type="cms/block" block_id="newsletter"}}

for the CMS page. I've checked if the phtml and xml files have their necessary bits of code in them; subscribe.phtml is still "out-of-the-box", and once again, it is there

    <default>
    <reference name="footer">
        <block type="newsletter/subscribe" name="footer.newsletter" as="newsletter" before="-" template="newsletter/subscribe.phtml"/>
    </reference>
</default>

Can you help me figure out how to show the newsletter module (or static blocks in general) in the footer as it is supposed to be, please? Much appreciated, thanks.

5
  • is only newsletter model vanished?
    – Amit Bera
    Oct 24, 2014 at 7:06
  • no, like I said the whole footer is empty link
    – theHubi
    Oct 24, 2014 at 7:18
  • remove all newletter code from xml and check that footer is coming or not
    – Amit Bera
    Oct 24, 2014 at 7:30
  • removed from "page.xml", no changes; I can hardly remove it from "newsletter.xml", now can I?
    – theHubi
    Oct 24, 2014 at 7:34
  • since adding a backend-login won't really help, here's the .xml-files: xml-files
    – theHubi
    Oct 24, 2014 at 7:47

1 Answer 1

2

You can call newsletter at footer by using php code

    echo $this->getLayout()->createBlock("newsletter/subscribe")
->setTemplate("newsletter/subscribe.phtml")->toHtml();
3
  • I suppose I have to add that in the template file?
    – theHubi
    Oct 24, 2014 at 7:23
  • aside from the typo "`" at the end of newsletter, it hasn't changed the site.
    – theHubi
    Oct 24, 2014 at 7:31
  • since no further information came, I fixed the problem myself with this code snippet.
    – theHubi
    Oct 24, 2014 at 8:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.