添加magento布局
如何在magento系统上添加布局?我想添加一个新的布局,也可以从管理面板中选择 我试图在网站上做两个布局。一种布局带有横幅,另一种布局没有横幅。让我们说我想要添加magento布局,magento,layout,magento-1.7,Magento,Layout,Magento 1.7,如何在magento系统上添加布局?我想添加一个新的布局,也可以从管理面板中选择 我试图在网站上做两个布局。一种布局带有横幅,另一种布局没有横幅。让我们说我想要 2列右.phtml和2列右wBanner.phtml 如何添加此功能?为此,您需要创建一个自定义模块 在模块etc/config.xml中复制以下代码: <?xml version="1.0"?> <config> <global> <page> <l
2列右.phtml
和2列右wBanner.phtml
如何添加此功能?为此,您需要创建一个自定义模块 在模块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>
自定义布局横幅
第页/2列-right-wBanner.phtml
希望这有帮助 不需要模块。这可以放在local.xml中。在我看来,在布局中放置模块没有多大意义。@ZacharySchuessler,我将其放置在local.xml中,但我无法在管理中获得该选项。我做错了什么?在local.xml全局标记中,请放置以下代码:自定义布局横幅页/2列-right-wBanner.phtml