0

I have created a CMS page in magento says Retailer Signup and set below xml in Layout Update XML

<reference name="content">
    <block type="customer/form_register" name="customer_form_register" template="retailer/customer/form/register.phtml">
        <action method="setShowAddressFields"><value>true</value></action>
        <block type="page/html_wrapper" name="customer.form.register.fields.before" as="form_fields_before" translate="label">
            <label>Form Fields Before</label>
        </block>
    </block>
</reference>

Where retailer/customer/form/register.phtml is my custom form for retailer sign up. All are working but the title of page says Create New Customer Account.

I want to change it by Create New Retailer Account.

How to change page title only for custom signup form page?

1 Answer 1

0

< reference name="head">
< action method="setForcedTitle">< title>Create New Retailer Account.< /title>< /action>
< /reference>

you use this code to set title

2
  • I have already tried this and also setTitle but it is not working for me. Commented Sep 19, 2016 at 9:25
  • $this->getLayout()->getBlock('head')->setTitle($this->__('Create New Retailer Account')); before $this->renderLayout(); in your controller action Commented Sep 19, 2016 at 9:34

Your Answer

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

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