【发布时间】:2014-05-05 19:29:00
【问题描述】:
在我的 magento 商店中,我有一个基本类别,例如:http://demo.magentocommerce.com/electronics/cellphones。我正在使用模板 2columns-left.phtml。
现在我想要(全宽,在菜单和产品列表之间)类别信息(图片和描述),宽度为 100%。
在我的模板 2columns-left.phtml 中,我创建了这一行:
<?php echo $this->getChildHtml('category_info') ?>
但是我怎样才能在这里获得类别描述和照片呢?
我想我需要在我的类别中进行自定义布局更新,例如:
<block type="??" name="categpry_page_info" as="topCategoriInfo"
template="page/category_info.phtml"/>
但是我该怎么做呢?以及如何在我的 category_info.phtml 模板中接收类别描述和照片?
或者,也许还有其他方法可以在我的类别页面中获取此信息?
【问题讨论】:
标签: xml magento templates categories