私は Alan Storm のアドバイスを使用しています: Magento の管理ダッシュボードを使用せずにカテゴリ固有のレイアウトの更新を指定する 私の local.xml 内のいくつかのカテゴリ固有のレイアウトの更新を使用します。
xml を検証しましたが、有効な xml として返されています。エラーを報告するために mage 開発者モードを有効にし、例外ログを調べて何か問題があるかどうかを確認しましたが、うまくいきませんでした。
ここに私のlocal.xmlがあります:
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* local.xml
*
* Local layout modifications for our local theme
*
* @category design
* @package my_theme_default
* @copyright Copyright (c) 2011 Magebase.
*/
-->
<layout version="0.1.0">
<default>
<reference name="root">
<remove name="breadcrumbs"/>
<remove name="left.permanent.callout" /> <!--the dog-->
<remove name="right.permanent.callout" /> <!--back to school-->
</reference>
</default>
<reviews>
<reference name="root">
<remove name="header"/>
<remove name="footer"/>
</reference>
</reviews>
<review_product_list>
<reference name="root">
<remove name="header"/>
<remove name="footer"/>
</reference>
</review_product_list>
<CATEGORY_11> <!-- cat 5 or cat 6 -->
<reference name="content">
<block type="core/template" name="page.brand" template="page/brand.phtml" />
<block type="catalog/product_list" name="product_list" template="page/gourmet.phtml">
<block type="catalog/layer_view" name="filter_menu" template="catalog/layer/view.phtml"/>
</block>
</reference>
</CATEGORY_11>
<CATEGORY_12><!--cat 7 or cat 8 -->
<reference name="content">
<block type="core/template" name="page.brand" template="page/brand.phtml" />
<block type="catalog/product_list" name="product_list" template="page/toiletries.phtml">
<block type="catalog/layer_view" name="filter_menu" template="catalog/layer/view.phtml"/>
</block>
</reference>
</CATEGORY_12>
<CATEGORY_9> <!--cat 4 or cat5 -->
<reference name="content">
<block type="core/template" name="page.brand" template="page/brand.phtml" />
<block type="catalog/product_list" name="product_list" template="page/fashion.phtml">
<block type="catalog/layer_view" name="filter_menu" template="catalog/layer/view.phtml"/>
</block>
</reference>
</CATEGORY_9>
<CATEGORY_6> <!--cat_11 cat_3 -->
<reference name="content">
<block type="core/template" name="page.brand" template="page/brand.phtml" />
<block type="core/template" name="page.flip" template="page/flip.phtml" />
<block type="catalog/product_list" name="product_list" template="page/accessories.phtml">
<block type="catalog/layer_view" name="filter_menu" template="catalog/layer/view.phtml"/>
</block>
</reference>
</CATEGORY_6>
<CATEGORY_10> <!-- cat 6 or 7 -->
<reference name="content">
<block type="core/template" name="page.brand" template="page/brand.phtml" />
<block type="catalog/product_list" name="product_list" template="page/lifestyle.phtml">
<block type="catalog/layer_view" name="filter_menu" template="catalog/layer/view.phtml"/>
</block>
</reference>
</CATEGORY_10>
</layout>
誰かが私が間違っていることを教えてくれれば、それは大歓迎です。ありがとうございました。