如何添加自定义页面布局页面magento

时间:2015-07-31 11:37:10

标签: magento

我有自定义布局页面

我已将以下代码添加到app / code / core / Mega / page / etc / config.xml

<shop_overview module="page" translate="label">
    <label>Shop OverView Page</label>
    <template>page/shop_overview.phtml</template>
    <layout_handle>shop_overview</layout_handle>
</shop_overview> 

这将在页面布局下拉列表中的管理面板上显示“Shop Over View Page”

我想仅从此页面布局的类别中删除产品列表。 我试过以下但是没有用。

<shop_overview translate="label">
  <label>All One-Column Layout Pages</label>
  <reference name="root">
    <action method="setTemplate">
      <template>page/shop_overview.phtml</template>
    </action>
    <action method="setIsHandle"><applied>1</applied></action>
  </reference>
  <reference name="category.products">
    <remove name="product_list" />
  </reference>
</shop_overview>

1 个答案:

答案 0 :(得分:0)

您可以通过将显示模式更改为Static Block Only来为此类别指定静态块。

然后为该类别创建并选择该块。

参考链接:http://leveluptuts.com/tutorials/magento-community-tutorials/19-how-add-static-block-category-page