如何获取当前类别';是否在同一类别页面上的magento-1.9中的模板文件上显示s图像?

如何获取当前类别';是否在同一类别页面上的magento-1.9中的模板文件上显示s图像?,magento,magento-1.9,Magento,Magento 1.9,我只想使用xml在类别页面上添加.phtml模板文件 我试过下面的代码,但注意到成功了 <catalog_category_default> <reference name="header"> <block type="catalog/category_view" as="catalog_category_banner" name="catalog.category.banner" template="catalog/category/ca

我只想使用
xml
在类别页面上添加
.phtml
模板文件

我试过下面的代码,但注意到成功了

 <catalog_category_default>
    <reference name="header">
        <block type="catalog/category_view" as="catalog_category_banner" name="catalog.category.banner" template="catalog/category/category-header.phtml"/>
    </reference>           
</catalog_category_default>
提前感谢


<default>
    <reference name="header">
        <block type="catalog/category_view" as="catalog_category_banner" name="catalog.category.banner" template="catalog/category/category-header.phtml"/>
    </reference>           
</default>

in header.phtml use $this->getChildHtml('catalog_category_banner');
在header.phtml中使用$this->getChildHtml('catalog_category_banner');

在header.phtml中使用$this->getChildHtml('catalog_category_banner');
<default>
    <reference name="header">
        <block type="catalog/category_view" as="catalog_category_banner" name="catalog.category.banner" template="catalog/category/category-header.phtml"/>
    </reference>           
</default>

in header.phtml use $this->getChildHtml('catalog_category_banner');