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.

asked Oct 24, 2014 at 7:04
5
  • is only newsletter model vanished? Commented Oct 24, 2014 at 7:06
  • no, like I said the whole footer is empty link Commented Oct 24, 2014 at 7:18
  • remove all newletter code from xml and check that footer is coming or not Commented Oct 24, 2014 at 7:30
  • removed from "page.xml", no changes; I can hardly remove it from "newsletter.xml", now can I? Commented Oct 24, 2014 at 7:34
  • since adding a backend-login won't really help, here's the .xml-files: xml-files Commented 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();
answered Oct 24, 2014 at 7:11
3
  • I suppose I have to add that in the template file? Commented Oct 24, 2014 at 7:23
  • aside from the typo "`" at the end of newsletter, it hasn't changed the site. Commented Oct 24, 2014 at 7:31
  • since no further information came, I fixed the problem myself with this code snippet. Commented Oct 24, 2014 at 8:43

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.