【问题标题】:How to change search result page from 3 to 1 columns in magento?如何在 magento 中将搜索结果页面从 3 列更改为 1 列?
【发布时间】:2013-08-10 06:00:44
【问题描述】:

我必须从 1 列布局更改目录搜索结果页面布局 3。我在catalogsearch.xml 中尝试过,但没有得到正确的结果。谁能告诉我该如何解决?

谢谢。

【问题讨论】:

  • 我曾尝试将布局从 3 列布局更改为 1 列布局,但在 1 列布局中没有得到搜索结果。

标签: search magento-1.7 catalog


【解决方案1】:

更改 catalogsearch.xml 中的布局应该可以解决问题,这样做:

之前:

<action method="setTemplate"><template>page/3columns.phtml</template></action>

之后:

<action method="setTemplate"><template>page/1column.phtml</template></action>

您还应该在管理员>系统>缓存管理中清除您的 Magento 缓存。

希望这会有所帮助。

【讨论】:

  • 最好使用 layout.xml。
【解决方案2】:

或者你可以在local.xml中复制这个:

 <catalogsearch_result_index>
     <reference name="root">
        <action method="setTemplate"><template>page/1column.phtml</template></action>
     </reference>
 </catalogsearch_result_index>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多