Written by Steve Perry
Published on
Changing the default page template for the category view in Magento
I’ve been handed a layout to build for a Magento project which uses a 1-column layout for the catalog category view. Out-of-the-box Magento uses the 3-column layout. To change the default behaviour I added the following to my app/design/frontend/custom/default/layout/local.xml
<?xml version="1.0"?> <layout> <catalog_category_default> <reference name="root"> <action method="setTemplate"><template>page/1column.phtml</template></action> </reference> </catalog_category_default> </layout>
I’m still getting used to how Magento handles it’s layouts using xml
but the more I work with it, the more it makes sense.