pasine
pasine

Reputation: 11543

Inherit category layout update in magento in catalog.xml

I know I can set a single category layout through catalog.xml using

<CATEGORY_123>
  <reference name="left">
    <block type=""> (etc.)
  </reference>
</CATEGORY>

(thanks @Greg for this answer)

How can I set this update for the single category and all its children categories?

Upvotes: 3

Views: 958

Answers (2)

Steve Robbins
Steve Robbins

Reputation: 13812

You can add the layout update in Custom Design section of your Category, then set all children categories to use the parent settings

enter image description here

Upvotes: 0

Avisra
Avisra

Reputation: 740

Using Catalog.xml I'm not sure if you can. However, if you go to your category in the administration and click on the Custom Design tab, you can put your XML there and specify whether child categories/product inherit the XML (using the "Apply To" dropdown).

Upvotes: 1

Related Questions