How to change page layout page in Magento?

My problem is that I want to change the page layout in a category similar to the home page. I tried a lot, but did not get an answer.

+6
magento
source share
6 answers

However, the best way to do this is not to edit catalog.xml, but page.xml

at the bottom, edit the first block that you see there:

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

change this to:

 <block type="page/html" name="root" output="toHtml" template="page/2columns-right.phtml"> 

for more information, follow this link http://www.magentocommerce.com/boards/viewthread/16838/

+11
source share

Admin Login

Catelog → Manage Categories → Choose Your Category

Then, in the tab section, select Custom Design.

Change the page layout as you want.

+9
source share

I am not sure if I understand your question. Anyway...

You can edit the category view in the template / directory / category / view.phtml.

If you need to use a three-column layout, such as the home page, you need to assign a 3-column template in the catalog.xml file.

+7
source share

Modify the catalog.xml file from / app / design / frontend / your_theme /default/layout/catalog.xml and add a new link in the default block block

 <default> ... <reference name="root"> <action method="setTemplate"> <template>page/2columns-right.phtml</template> </action> </reference> ... </default> 

Thus, you overwrite the root block in the page.xml file (the main Magento layout file is loaded)

+1
source share

This thread has an extension that allows you to set the page layout for your categories

0
source share

Run the script below. It will set the value "3_columns" in the "Page Layout" field for all categories.

 $write = Mage::getSingleton('core/resource')->getConnection('core_write'); $updateQry = "UPDATE catalog_category_entity_varchar SET value='three_columns' WHERE attribute_id='61' "; $write->query($updateQry); 
-6
source share

All Articles