Magento Questions Answered By Magento Experts

 

Welcome Guest. Sign in or Signup

4 Answers

How to show different layouts on each main category and its sub pages

Asked by: 2657 views , , ,
Questions

I want to apply different page layouts for the each main category and their sub category and product pages . All the main categories have diferent css and images and layouts and also home page also have diffrent layouts than other category pages , so any idea how can i achieve this ?

4 Answers



  1. Magentist on Feb 16, 2011 Reply

    Hi Heena,

    If you need to specify a different list.phtml for each category, you can tell Magento which version to use by going to manage your category, click on the Custom Design tab, and enter this in the Custom Layout Update field:

    <reference name="product_list">
    	<action method="setTemplate">
    		<template>catalog/product/list-custom.phtml</template>
    	</action>
    </reference>

    Magento Themes by Magentist

    +1 Votes Thumb up 2 Votes Thumb down 1 Votes



    • bastasys on May 08, 2012 Reply

      please let me know how to specify a new view.html for one of my catagories..

      have tried:

      <reference name="category_view">
      	<action method="setTemplate">
      		<template>catalog/product/view-appo.phtml</template>
      	</action>
      </reference>

      at Custom Design tab, and enter this in the Custom Layout Update field, but no joy..

      can Magentist or anyone please help me?

      thanks..

      +1 Votes Thumb up 1 Votes Thumb down 0 Votes



  2. bastasys on May 08, 2012 Reply

    Hey..got it..

    it should have been:

    <reference name="category.products">
      <action method="setTemplate"><template>catalog/category/view-appo.phtml</template></action>
    </reference>

    it might help someone..so posted it..

    cheers!!

    +1 Votes Thumb up 1 Votes Thumb down 0 Votes



  3. craig hopgood on Feb 20, 2013 Reply

    How would also change which block class to use to deliver data to the template?

    0 Votes Thumb up 0 Votes Thumb down 0 Votes


Answer Question