<block type="catalog/product_compare_sidebar" before="cart_sidebar" name="catalog.compare.sidebar" template="catalog/product/compare/sidebar.phtml"/>
<block type="catalog/product_list"...>
我研究了http://magebase.com/magento-tutorials/demystifying-magentos-layout-xml-part-1/,它提到了一个type属性,它定义了块的类名。在上面的代码中,catalog/product_compare_sidebar和catalog/product_list应该是一个块类,所以,声明这些块的php文件的位置在哪里(任何来自“catalog/product_compare_sidebar”和“catalog/product_list”的提示“)?Magento - 布局
有许多块类型,我怎么知道哪些块类型可用以及如何选择哪种块类型适合现有块?
感谢您
感谢您的信息,但如何“有很多块类型,我怎么知道哪种块类型可用以及如何选择哪种块类型适合现有块?” – 2010-11-18 11:01:03
@Charles Yeung:看到更新超过 – greg0ire 2010-11-18 11:05:51
谢谢你,还有一件事“{{block type =”catalog/product_list“category_id =”5“template =”catalog/product/list.phtml“}}”怎么会这样有属性category_id? – 2010-11-18 11:26:52