Magento 2 - Add Footer Newsletter Signup to Content Block in CMS - magento2

I need to move the Newsletter Signup from the footer into a Content Block I've created in the backend of my Magento 2.1.3 installation.
In Magento 1 you could use the code below but this appears to be no longer the case using Magento 2
{{block type="newsletter/subscribe" name="left.newsletter" template="newsletter/subscribe.phtml"}}
Was wondering if anyone had a solution that could help. The site I'm developing is china.testdev.tech and the newsletter signup needs to go into the blue box in the middle of the homepage content.
Thanks in advance.
Kev

In magento-2 To call the particular phtml file, You need to used this code.
{{block class="Magento\Newsletter\Block\Subscribe" name="home.form.subscribe" template="Magento_Newsletter::subscribe.phtml"}}

Related

Magento 2 Admin Pages Content

I'm new to Magento 2 development and am trying to customize some of the content on admin pages and on the "customer account" pages.
Can anyone tell me where the PHP/html code for these is located in the standard file structure? Are there any codeblocks/layouts used for these?
Magento admin pages are mostly built from ui_component ( form, listing ) which requires to understand not only html or phtml , but also knockout js, smarty template , xml and data provider. So nobody can help you with some lines of code or just show you the files you need.

How to create hook for CMS Block in prestashop

I need to create hook for CMS block individual content in prestashop. So that i can display CMS items in different positions and also i need to display CMS items in home page.
Is it possible to create hook for CMS block. Any suggestions would appreciate
Thanks in Advance
You can use displayTop hook through a custom module and need to change the rendering condition for different pages of PrestaShop.
Every page in PrestaShop has a unique name that can be used to change block content as per your requirements.
The page name can be fetched using following line in any Class file in PrestaShop:
$this->context->smarty->tpl_vars['page_name']->value

Magento - Create a CMS page for new customers to sign up

I need to create a page in Magento 1.6.2 with a form to sign up for an account.
However I am not being given access to any of the sites files, so I need to be able to do it purely through the backend.
Probably with a CMS Page and getting template files, using {{block type=""}} (It's been a while since I've worked with Magento so I've forgotten a bit)
Does anyone know how I can achieve this, is it even possible?
This will work in 1.6.2 and 1.7.0.2
{{block type ="customer/form_login" template="persistent/customer/form/login.phtml" }}

What Typo3 newsletter extension can automatically fetch web content changes

The Typo3 extension tt_news enables for example all created news by this extension to be shown in the newsletter but not content from a "not news" page of the website.
We are looking for a plugin which automatically finds new content on the website and let us create a newsletter from it.
What extension could be used here? Might direct mail be able to do so?
Taken from the Direct Mail manual: "Newsletter pages are just normal pages. Their rendering is configured by the TS template."
A very simple solution for what you want to do would be to write a simple extension where you get the newest content elements and output them. Direct Mail itself will not do that for you, but it will send out any content that you provide on the "Newsletter page".

Custom Form not showing up in magento

I am having difficulty getting a form to show on a magento store I am working on. the site already has a contact form so I've copied the form.phtml file and renamed it brochure.phtml.
I've created a static page on the CMS section and added this line of code based on this qusetion
{{block type="core/template" template="contacts/brochure.phtml"}}
When I view the page though nothing shows up. What am I doing wrong? I've never used magento before so please be as detailed in your answers if you can.
CMS -> Pages ->Select your page -> Select "Content" on the left side navigation
Post this code there
{{block type="core/template" name="contactForm" form_action="/contacts/index/post" template="contacts/brochure.phtml"}}
make sure your brochure.phtml file is in the same folder as the form.phtml file. If your CMS page is coming up with the header, body format and the rest of the website layout but the middle content section is plain white then it is not loading your brochure.phtml. If this is the case I would then try loading the default form, so replace "brochure.phtml" with "form.phtml" and reload the page. If you see the default form then you know your brochure.phtml file is in the wrong location.
Hope this fixes your problem.