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.
-
is only newsletter model vanished?Amit Bera– Amit Bera ♦2014年10月24日 07:06:13 +00:00Commented Oct 24, 2014 at 7:06
-
no, like I said the whole footer is empty linktheHubi– theHubi2014年10月24日 07:18:12 +00:00Commented Oct 24, 2014 at 7:18
-
remove all newletter code from xml and check that footer is coming or notAmit Bera– Amit Bera ♦2014年10月24日 07:30:25 +00:00Commented Oct 24, 2014 at 7:30
-
removed from "page.xml", no changes; I can hardly remove it from "newsletter.xml", now can I?theHubi– theHubi2014年10月24日 07:34:26 +00:00Commented Oct 24, 2014 at 7:34
-
since adding a backend-login won't really help, here's the .xml-files: xml-filestheHubi– theHubi2014年10月24日 07:47:24 +00:00Commented Oct 24, 2014 at 7:47
1 Answer 1
You can call newsletter at footer by using php code
echo $this->getLayout()->createBlock("newsletter/subscribe")
->setTemplate("newsletter/subscribe.phtml")->toHtml();
-
I suppose I have to add that in the template file?theHubi– theHubi2014年10月24日 07:23:13 +00:00Commented Oct 24, 2014 at 7:23
-
aside from the typo "`" at the end of newsletter, it hasn't changed the site.theHubi– theHubi2014年10月24日 07:31:22 +00:00Commented Oct 24, 2014 at 7:31
-
since no further information came, I fixed the problem myself with this code snippet.theHubi– theHubi2014年10月24日 08:43:31 +00:00Commented Oct 24, 2014 at 8:43
Explore related questions
See similar questions with these tags.