我想在产品列表模板页面中添加产品简短描述,我发现这篇文章: http: //www.magentocommerce.com/knowledge-base/entry/magento-for-dev-part-3-magento-controller-dispatch
它说:Blocks refer directly back to the models for their data. In other words, the Action Controller does not pass them a data structure.
那么,是否意味着应该将获取简短描述的代码添加到 Block 类中?但是 Block 类是 Magento Core 类:
Mage_Catalog_Block_Product_List
我不应该编辑这个类,对吧?所以我该怎么做?创建我自己的 Block 类扩展Mage_Catalog_Block_Product_List
并向其添加 showProductShortDescription 方法?如果是,我应该创建自己的模块吗?
谢谢!