【问题标题】:Custom layout magento自定义布局 magento
【发布时间】:2015-10-23 13:50:45
【问题描述】:

我已经使用这个简单的教程http://www.implementek.com/adding-new-page-layout-for-magento-cms-pages/在magento中成功添加了一个自定义页面布局

效果很好,我可以在 Magento 的后端看到新的布局。我的问题是如何添加另一个?我似乎无法让 magento 识别其他新页面...如何在 xml 文件中引用更多页面?

<cms>
<layouts>
<redirect>
<label>Woman Product Page</label>
<template>page/1column-woman.phtml</template>
</redirect>
</layouts>
</cms>

【问题讨论】:

    标签: magento


    【解决方案1】:

    只是添加另一个?例如:

    <cms>
        <layouts>
            <redirect>
                <label>Woman Product Page</label>
                <template>page/1column-woman.phtml</template>
            </redirect>
            <another>
                <label>Man Product Page</label>
                <template>page/1column-man.phtml</template>
            </another>
        </layouts>
    </cms>
    

    【讨论】:

      猜你喜欢
      • 2013-09-28
      • 1970-01-01
      • 1970-01-01
      • 2015-01-16
      • 2013-09-13
      • 2022-12-15
      • 2015-02-23
      • 2011-05-22
      • 2014-08-29
      相关资源
      最近更新 更多