Created
March 5, 2019 06:13
-
-
Save andreconghau/e8bfc9c90f2880772bf5e22166191be9 to your computer and use it in GitHub Desktop.
Magento 2 login register one page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<!-- | |
/** | |
* Copyright © Magento, Inc. All rights reserved. | |
* See COPYING.txt for license details. | |
*/ | |
--> | |
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> | |
<body> | |
<referenceBlock name="page.main.title"> | |
<action method="setPageTitle"> | |
<argument translate="true" name="title" xsi:type="string">My Login page</argument> | |
</action> | |
</referenceBlock> | |
<referenceContainer name="content"> | |
<!-- customer.form.login.extra --> | |
<container name="customer.login.container" label="Customer Login Container" htmlTag="div" htmlClass="login-container"> | |
<!--<block class="Magento\Customer\Block\Form\Login\Info" name="customer.new" template="Magento_Customer::newcustomer.phtml"/>--> | |
<block class="Magento\Customer\Block\Form\Register" name="customer_form_register" template="Magento_Customer::form/register.phtml"> | |
<arguments> | |
<argument name="attribute_data" xsi:type="object">Magento\Customer\Block\DataProviders\AddressAttributeData</argument> | |
</arguments> | |
<container name="form.additional.info" as="form_additional_info"/> | |
<container name="customer.form.register.fields.before" as="form_fields_before" label="Form Fields Before" htmlTag="div" htmlClass="customer-form-before"/> | |
</block> | |
<block class="Magento\Cookie\Block\RequireCookie" name="require-cookie" template="Magento_Cookie::require_cookie.phtml"> | |
<arguments> | |
<argument name="triggers" xsi:type="array"> | |
<item name="registerSubmitButton" xsi:type="string">.action.submit</item> | |
</argument> | |
</arguments> | |
</block> | |
</container> | |
<block class="Magento\Cookie\Block\RequireCookie" name="require-cookie" template="Magento_Cookie::require_cookie.phtml"> | |
<arguments> | |
<argument name="triggers" xsi:type="array"> | |
<item name="loginButton" xsi:type="string">.action.login</item> | |
</argument> | |
</arguments> | |
</block> | |
</referenceContainer> | |
<referenceContainer name="form.additional.info"> | |
<block class="Magento\Framework\View\Element\Template" name="form_additional_info_customer" template="Magento_Customer::additionalinfocustomer.phtml"/> | |
</referenceContainer> | |
</body> | |
</page> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment