Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

How to change the layout in catalog page
 
Sowmya
Jr. Member
 
Total Posts:  15
Joined:  2009-06-23
 

Hi,

I want to change the layout for catalog page (right column is not needed).
Ex: The layout of homepage should contain right column. and when i click on a category, the layout shouldn’t contain right column. How can i do this.
Thanks in advance.

 
Magento Community Magento Community
Magento Community
Magento Community
 
CT Schubert
Sr. Member
 
Avatar
Total Posts:  197
Joined:  2008-10-08
Southern California
 

Go into your template folder, go into the layout folder, edit the catalog.xml

Find where it says

<!--
Category default layout
-->

Below that you should see

<reference name="root">
  <
action method="setTemplate"><template>page/3columns.phtml</template></action>
</
reference>

Change it to:

<reference name="root">
  <
action method="setTemplate"><template>page/2columns-left.phtml</template></action>
</
reference>
 
Magento Community Magento Community
Magento Community
Magento Community
 
timnguyen
Jr. Member
 
Avatar
Total Posts:  5
Joined:  2009-08-05
 

Hi, I’ve found an other way to do that, may be this is not the best solution, but it’s simple if you want all your pages use 2 columns.

Open file page.xml (yourtemp/layout/ folder), you should see these lines at the top

<default>
<block type="page/html" name="root" output="toHtml" template=”page/3columns.phtml”>

Change the 3columns.phtml to 2columns-left.phtml --> finish

If there’s any better way, please tell me.

Thanks,
Brian

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top