2014-07-17 90 views
0

我有一個Magento搜索的問題。當我搜索一個單詞時,它會給我一個空白的內容頁面。Magento搜索不顯示結果(沒有佈局!)

這是搜索查詢結果頁面的示例:http://bengar.de/de/catalogsearch/result/?q=bengar

你有什麼想法爲什麼沒有結果(或至少佈局!)在這個頁面上?

謝謝。

佈局catalogsearch.xml:

<catalogsearch_result_index translate="label"> 
    <label>Quick Search Form</label> 
    <update handle="page_two_columns_left" /> 
    <reference name="root"> 
     <action method="setTemplate"><template>page/2columns-left.phtml</template></action> 
    </reference> 
    <reference name="left"> 
     <block type="catalogsearch/layer" name="catalogsearch.leftnav" after="currency" template="catalog/layer/view.phtml"/> 
    </reference> 
    <reference name="content"> 
     <block type="catalogsearch/result" name="search.result" template="catalogsearch/result.phtml"> 
      <block type="catalog/product_list" name="search_result_list" template="catalog/product/list.phtml"> 
       <block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml"> 
        <block type="page/html_pager" name="product_list_toolbar_pager"/> 
       </block> 
       <action method="addColumnCountLayoutDepend"><layout>empty</layout><count>6</count></action> 
       <action method="addColumnCountLayoutDepend"><layout>one_column</layout><count>5</count></action> 
       <action method="addColumnCountLayoutDepend"><layout>two_columns_left</layout><count>4</count></action> 
       <action method="addColumnCountLayoutDepend"><layout>two_columns_right</layout><count>4</count></action> 
       <action method="addColumnCountLayoutDepend"><layout>three_columns</layout><count>3</count></action> 
       <action method="setToolbarBlockName"><name>product_list_toolbar</name></action> 
      </block> 
      <action method="setListOrders"/> 
      <action method="setListModes"/> 
      <action method="setListCollection"/> 
     </block> 
    </reference> 
</catalogsearch_result_index> 
+0

在你的XML被分配給catalogsearch對結果指標是什麼佈局替換您的佈局? – RichTea

+0

我使用Layout代碼片段更新了帖子。 – aelhobbi

回答

0

與以下

<catalogsearch_result_index translate="label"> 
<reference name="root"> 
     <action method="setTemplate"><template>page/2columns-left.phtml</template></action> 
    </reference> 
    <reference name="head"> 
     <action method="setTitle" translate="title" module="catalogsearch"><title>Advanced Search</title></action> 
     <action method="addItem"><type>js_css</type><name>calendar/calendar-win2k-1.css</name><params/><!--<if/><condition>can_load_calendar_js</condition>--></action> 
     <action method="addItem"><type>js</type><name>calendar/calendar.js</name><!--<params/><if/><condition>can_load_calendar_js</condition>--></action> 
     <action method="addItem"><type>js</type><name>calendar/calendar-setup.js</name><!--<params/><if/><condition>can_load_calendar_js</condition>--></action> 
    </reference> 
    <reference name="content"> 
     <block type="catalogsearch/advanced_form" name="catalogsearch_advanced_form" template="catalogsearch/advanced/form.phtml"/> 
     <block type="core/html_calendar" name="html_calendar" as="html_calendar" template="page/js/calendar.phtml"/> 
    </reference> 
</catalogsearch_result_index> 
+0

謝謝。我替換了它,但沒有結果:( – aelhobbi

+0

我複製了高級搜索代碼片段,我想你的意思是快速搜索表單?我再次更新了該帖子。 – aelhobbi