添加magento布局

时间:2012-09-10 12:35:25

标签: magento layout magento-1.7

如何在magento系统上添加布局?我想添加一个新的布局,也可以从管理面板中选择。

我想在网站上制作两个布局。一个横幅布局,另一个没有横幅。让我们说我想要

2Columns-right.phtml2Column-right-wBanner.phtml

如何添加?

1 个答案:

答案 0 :(得分:2)

对于此,您需要创建自定义模块。

在Module etc / config.xml中复制以下代码:

<?xml version="1.0"?>
<config>
    <global>
    <page>
        <layouts>
            <custom_layout_wbanner>
                <label>Custom Layout Banner</label>
                <template>page/2Column-right-wBanner.phtml</template>
            </custom_layout_wbanner>
        </layouts>
    </page>
    </global>
</config>

希望这个帮助!!