1

I am using Facebook connect and like plugin

On Login or Create an Account page, i want two columns page. currently its one column

<reference name="root">
            <action method="setTemplate"><template>page/2columns-left.phtml</template></action>
        </reference>    
    <reference name="customer_form_login">
        <block type="verticalmenu/verticalmenu" after="-" name="ma.verticalmenuleft" template="magentothem/verticalmenu/verticalmenuleft.phtml" />

        <block type="customer/form_login" name="customer_form_login" template="customer/form/login.phtml">
            <action method="setTemplate" ifconfig="facebookfree/settings/enabled" ifvalue="1">
                <template>facebookfree/login.phtml</template>
            </action>
        </block>
    </reference>
</customer_account_login>
Alizain Prasla
  • 335
  • 2
  • 5
  • 16
  • 1
    Just format the HTML and CSS in your phtml file. Don't confuse 2columns-left with being a 1column layout split in two. – Ben Lessani Mar 07 '13 at 17:38

3 Answers3

1

Most easiest way i found.

    <update handle="customer_account"/>
    <!-- Mage_Customer -->
    <reference name="root">
        <action method="setTemplate"><template>page/2columns-left.phtml</template></action>
    </reference>
Alizain Prasla
  • 335
  • 2
  • 5
  • 16
0

The problem is, that there is a check, wether a template is applied

/app/code/core/Mage/Page/Helper/Layout.php:76
    if ($this->getLayout()->getBlock('root') &&
        !$this->getLayout()->getBlock('root')->getIsHandle()) {
            // If not applied handle
            $this->getLayout()
                ->getBlock('root')
                ->setTemplate($pageLayout->getTemplate());
    }

you have to remove the <action method="setIsHandle"><applied>1</applied></action>. I don't know what the best pratice is here. Changing the page.xml is not :-)

Fabian Blechschmidt
  • 35,388
  • 8
  • 75
  • 182
0

For some reason, default customer.xml updates contain

<remove name="right"/>
<remove name="left"/>

for almost all pages. That's why setting template for root isn't enough and you also have to remove the removes.

Jan Tomka
  • 734
  • 5
  • 21