仅针对一个cms页面更改布局 - 例如"客户服务"

时间:2015-09-28 11:18:50

标签: magento-1.9

我在网上商店使用magento默认安装程序附带的页面。客户希望在该页面的右栏上有不同的内容。 例如,在"客户服务"页面想要拥有最常见的常见问题解答,但在"联系人"想要有电话和邮件信息。

我怎么能做到这一点?我一直在尝试将右栏中的2columns-right布局更改为每个页面,但我无法找到方法。

先谢谢。

1 个答案:

答案 0 :(得分:0)

在' CMS>网页'从Magento后台办公室,进入设计'您要更改的每个页面中的标签,并设置'布局'使用右栏'到' 2列。

然后,您可以使用right.permanent.callout块在所需的各种页面/页面类型上调用您希望的内容。

例如,仅在联系页面的右侧边栏中显示图像: -

<contacts_index_index>
    <reference name="right">
        <block type="catalog/product_compare_sidebar" before="cart_sidebar" name="catalog.compare.sidebar" template="catalog/product/compare/sidebar.phtml"/>
        <block type="core/template" name="right.permanent.callout" template="callouts/right_col.phtml">
            <action method="setImgSrc"><src>images/media/col_right_callout.jpg</src></action>
            <action method="setImgAlt" translate="alt" module="catalog"><alt>Keep your eyes open for our special Back to School items and save A LOT!</alt></action>
        </block>
    </reference>
</contacts_index_index>

您可以修改以根据需要更改页面,页面类型或模板/块。