I’m a little stumped trying to get my category’s layout update xml to apply to its children. I’m trying to add a number of static blocks using the ‘Custom Design’ tab on category admin. I’m selecting the ‘This category and its child categories’ option for ‘Apply To’, however the updates are still only applied to the top-most category. I’ve tried resetting the cache but still nothing.
Before I go into debug mode, can anyone shed any light as to why this might be? Has any body else managed to get layout updates to work in this way?
I looked into this more in version 1.0 and came the the conclusion that either:
a) It’s not implemented yet
or
b) It’s not supposed to work the way the form implies - i.e. the dates and inheritance options apply to the custom design only, not the custom layout updates.
I had a go at implementing it but I couldn’t find an easy way to implement it without having to traverse right up the category tree each time.
I’d quite like this feature though, as the only alternative is having to ripple layout changes down the category tree manually using admin.
Quite same problem here. I tried to apply new custom design to root category and its childs, but nothing happens. If I apply the same custom design straight to child category, it works well for that one category. If I had many child categories and I had to apply design to all of them one by one, it would take much time.
I thought this would be easy because of that feature but I guess I was dreaming…
If you’re wanting to apply layout update changes to all categories and subcategories it’s possible to do so using the catalog.xml layout file. It just doesn’t seem to be possible if you’re wanting to target specific subtrees of categories via admin.
So Simon you think it’s not possible to have different layout for one root category and its childs (I have many root categories) by modifying xml-file? Meaning, all categories and subcategories = all root categories and sub categories?
Stupid question, but I just want to be very sure
I don’t think so, although I would love to be proved wrong!
There are update handles such as
<default> - everything
<catalog_category_default> - all standard categories (or possibly all categories, not sure which)
<catalog_category_layered> - all layered navigation anchors
then I think there’s
<catalog_category_CATEGORYID> - targets the specific category. I’m assuming this doesn’t ripple down to subcategories, but I could be wrong.