Magento-在许多页面中显示一个模块块

问题描述

我创建了一个带有模块的模块,该模块要在很多页面显示;例如:购物车,右列和无项目的购物车。 我怎样才能做到这一点 ? 谢谢。     

解决方法

将块添加到您想要查看的位置。您可以将块添加到任何这样的句柄:
<layout_handle>
    <reference name=\"parent_block_name\">
        <block type=\"yourmodule/your_block_handle\" name=\"block.name\" template=\"path/to/template.phtml\" />
    </reference>
</layout_handle>
没有理由您无法针对多个布局句柄执行此操作。