i want add .phtml template file on category page using xml.
i have tried below code note success.
<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> and in header.phtml file below line.
<?php echo $this->getchildhtml('catalog_category_banner'); ?> thanks in advance
<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');
Comments
Post a Comment